Hi
Im relatively new to PHP and ive implemented a javascript date picker into a webform. The date picker works fine and posts the date into the textbox as expected by PHP doesnt seem to pick up the value of the textbox and put it into a variable.
<html>
<head>
<title>me</title>
<script type="text/javascript" language="javascript" src="datetimepicker.js"></script>
<script language="JavaScript">
<!--
if (document.images)
{
calimg= new Image(16,16);
calimg.src="cal.gif";
}
//-->
</script>
[code=php]<?php
if (isset($_POST['btnsubmit']));
$start = $_POST['txtStartDate'];
?>
</head>
<body>
<form name="form1" method="post" action="me.php">
<input type="Text" id="txtStartDate" maxlength="25" size="25"><a href="javascript:NewCal('txtStartDate','yyyymmdd')" />
<img src="cal.gif" width="16" height="16" border="0" alt="Pick a date"></a><br/><br/>
<input type="submit" value="submit" name="btnsubmit" />
<?php echo $start; ?>
</form>
</body>
</html>[/CODE]
I would expect to see the date in the textbox printed out beneath it, yet this doesnt happen and instead nothing is printed out. I got the javascript date picker from the following website: http://www.rainforestnet.com/datetimepicker.htm
Any help would be greatly appreciated - or if anyone could suggest an alternative date picker with some example code then that would also be great
Thanks in advance