By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,254 Members | 1,713 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,254 IT Pros & Developers. It's quick & easy.

Not picking the enddate var

P: 333
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
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
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.