Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
JavaScript Validation - Form Action
Name: drsmartman Date: March 5, 2004 at 20:53:55 Pacific OS: Win XP CPU/Ram: P4 2.4
Comment:
Quick question. Just started using JavaScript again after a few years off. I know there is a wealth of form validation out there, but for some reason I return false (see below) and the form still takes action. Isn't the form NOT supposed to take the "action" if the function below returns false?
Name: Michael J (by mjdamato) Date: March 6, 2004 at 21:46:12 Pacific
Reply:
Instead of using a submit button, I use just a regular HTML button which calls a function. That function (if the validations are met) will submit the form. I find that this method gives me much more flexibility.
Michael J
0
Response Number 2
Name: airski Date: March 9, 2004 at 21:52:40 Pacific
Reply:
Here is a simple form validation to test if a text box has no value. If the user does not enter something it won't submit. Your call is correct so it must be something below.
Summary: Hello I am having problems with my web site. I have got a contact form and im using a javascript rollover button to submit it Ive put javascript:document.form1 .submit() as the link. I have set the fo...
Summary: I am looking for a solution to have customer fill out form from order page to complete order, found one website has this function, but not quite understand how it works,anyone can offer any idea what ...
Summary: Any ideas on how to take a htm with forms and use the form action to input the data to a text file? I thought it was easy until I can't find a script already written to do that. I want the user to i...