471,854 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

Not picking the enddate var

ddtpmyra
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>";
  3.  
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 1315
gits
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.