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.
validate form with rollover button
Name: bexm Date: March 1, 2004 at 04:33:25 Pacific OS: winxp pro CPU/Ram: 1.2 athlon 128 ram
Comment:
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 form action to onsubmit to validate the form and then a mailto: function but it validates it but whether its right or wrong it mails it anyway. I am not great a writing much code, I am using mainly things in dreamweaver MX.
Please can someone tell me how I can make this work properly,where it validates it and then sends it if it is right but just gives the error if its wrong.
First, read this thread to see why using mailto: is a bad idea for a form action.
Second, Your form tag should look something like this: <FORM onSubmit="return validateForm (this)" action="finishOrder.php" method="POST" name="myForm">
Summary: It's been a while since i've used PHP. How can i display a specific html page in a case statement. Basically i have a form with radio buttons on it and from each radio selectoin when they click the su...
Summary: 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 f...
Summary: SN, What about the following page? It uses CSS to make rollover buttons: www.james-greenwood.co.uk/hoverbuttons.html James if(GetCookie('computingnet_image') == 'yes') { document.write(''); } ...