TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
snowal raj
NA
166
39.2k
how to set selected date in datetime picker
Jan 18 2017 7:15 AM
hai ,
i have a 2 datetime picker and 1 button in my logsheet.php page ,i set default date is today date in 2 datetime picker.when i change date and click button, the datetime picker
value is not change in datetime picker control.
this is a code.
<form action="logsheet.php" method="post">
Select Date :<input id="dtpFromDate" name="dtpFromDate" type="date" value="<?php print(date("Y-m-d"));?>" style="font-size:120%;text-align:center;background-color:#f9ecc7;font-weight:bold;"/>
to Date :
<input name="dtpToDate" type="date" value="<?php print(date("Y-m-d")); ?>" style="font-size:120%;text-align:center;background-color:#f9ecc7;font-weight:bold;"/>
<?php
if($_SERVER['REQUEST_METHOD'] == "POST" and isset($_POST['Load']))
{
$userid= $_POST['username'];
$fromdate = $_POST['dtpFromDate'];
$todate =$_POST['dtpToDate'];
$sql = ("call sp_get_fulllog_sheet('$fromdate','$todate','$userid')");
$result = mysqli_query($mysqli, $sql);
?>
Reply
Answers (
3
)
What are the necessary plugins must be used in WordPress?
How can I make the UI of my website better?