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

HTML forms: validate form before submitting

P: 36
Hi every all,

i have a small doubt about the form tag in html. i have html page which has 2 select button, and one text box.
i have a submit button whicn on clicking it is calling inven.cgi.when i click it is going to new page , instead of that first i want to validate the select button and text box if nothing is selected then it should not go to the inven.cgi.


thanking you in advance
Jul 9 '08 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 5,343
you may check the form-values with some simple javascript by using the form's onsubmit-handler that calls the validation function(s) and returns true or false depending to the validation ...

kind regards
Jul 9 '08 #2

P: 9
Hi dude,
Please write jave script using call the function using onclick function!
hope you got it.

Jul 9 '08 #3

Expert Mod 15k+
P: 16,027
Moved to the JavaScript forum.
Jul 9 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.