View Single Post
Old 12-09-2012, 08:47 PM   PM User | #1
dambuster
New to the CF scene

 
Join Date: Dec 2010
Location: Birmingham (UK)
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
dambuster is an unknown quantity at this point
Complete novice needs a steer with HTML input form using javascript

Can someone give me a steer in the right direction.

I have an HTML form that requires two dates to be entered. Date 1 containes the current date and date 2 is set to the current date + 1, 2, 3 or 4 years in the future less 1 day. Dates are UK format dd/mm/yyyy. This is done with a PHP script on the serverside.

e.g.

Date 1: 02/11/2012 Date 2: 01/11/2016

If the user changes date 1: to say 02/06/2012 I would like to set the second date to 01/06/2016. Can this be done in javascript.
(You can probably guess I'm a complete novice when it comes to javascript Many thanks in advance)
dambuster is offline   Reply With Quote