This is a discussion on "2 similar input validations on one form" within the JavaScript Forum section. This forum, and the thread "2 similar input validations on one form are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
2 similar input validations on one form
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
2 similar input validations on one form
Hi, new guy here
I need to have two user input dates validated on a single form when the user clicks submit. At the moment I only hvae it validating one date and I'm not sure how to have it check the other, do I need some sort of a loop? The form code is:
Thanks EDIT:Link to doc if needed |
|
|
|
||||
|
Re: 2 similar input validations on one form
can you not just add a couple of lines to your code to make:
|
|
|||
|
Re: 2 similar input validations on one form
I've done some experimenting and that's one of the solutions I came up with; unfortunately although it validates the first date filed ok it still allows an invalid entry through on the second and passes the page.
|
|
|||
|
Re: 2 similar input validations on one form
How about:
The above is sloppy and off the top of my head, but you get the idea. |
![]() |
| Tags |
| similar, input, validations, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hiding / Showing form fields based on previous form input | John Alexander Hopper | PHP Forum | 1 | Mar 10th, 2008 11:30 |
| help with form input | gncreditcards | Web Page Design | 6 | Jan 23rd, 2008 01:34 |
| adding a field input to the subject in a form | goatsalad | PHP Forum | 1 | Feb 3rd, 2006 14:49 |
| Anybody know how to change the color of a text input form in | Physt | Web Page Design | 7 | Aug 16th, 2004 08:44 |
| <Input> to Requst.form() puzzle. | Whitemirc | Classic ASP | 2 | Nov 6th, 2003 09:27 |