469,320 Members | 2,153 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,320 developers. It's quick & easy.

Not picking the enddate var

333 100+
code inside PHP
Expand|Select|Wrap|Line Numbers
  1. <font face='Arial, Helvetica, sans-serif' size='2' color='#666600'>Date Created FROM<script>DateInput('startdate', true, 'YYYY-MM-DD')</script>
  2. TO<script>DateInput('enddate', true, 'YYYY-MM-DD')</script></font>";
code on javascript called on top of the program
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="/calendarDateInput.js">
  2. </script>
But whe I display the captured variable inside the PHP the enddate is the same as startdate. Please help.
Expand|Select|Wrap|Line Numbers
  1. $startdate= $_POST['startdate'];
  2.                     $enddate = $_POST['enddate'];
  3.                     echo "start $startdate";
  4.                     echo "end $enddate";
Sep 24 '09 #1
1 1293
5,390 Expert Mod 4TB
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
Sep 25 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by nologo | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.