Not picking the enddate var

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ddtpmyra
    Contributor
    • Jun 2008
    • 333

    Not picking the enddate var

    code inside PHP
    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 on javascript called on top of the program
    Code:
    <script type="text/javascript" src="/calendarDateInput.js">
    </script>
    But whe I display the captured variable inside the PHP the enddate is the same as startdate. Please help.
    Code:
    $startdate= $_POST['startdate'];
    					$enddate = $_POST['enddate'];
    					echo "start $startdate";
    					echo "end $enddate";
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    i guess you are using this datepicker? ... sine you didn't specify the default date both of the fields are filled with todays date, and when you don't pick another date then they should be the same ... or do i miss something in your problem's description?

    kind regards

    Comment

    Working...