code inside PHP
code on javascript called on top of the program
But whe I display the captured variable inside the PHP the enddate is the same as startdate. Please help.
Code:
<font face='Arial, Helvetica, sans-serif' size='2' color='#666600'>Date Created FROM<script>DateInput('startdate', true, 'YYYY-MM-DD')</script>
TO<script>DateInput('enddate', true, 'YYYY-MM-DD')</script></font>";
Code:
<script type="text/javascript" src="/calendarDateInput.js"> </script>
Code:
$startdate= $_POST['startdate']; $enddate = $_POST['enddate']; echo "start $startdate"; echo "end $enddate";
Comment