Computing.Net > Forums > Web Development > validate form with rollover button

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

Reply to Message Icon

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.

thanx
Bex




Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: March 1, 2004 at 08:33:16 Pacific
Reply:

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">


0
Reply to Message Icon

Related Posts

See More


Windows Media Encoder - N... Cgi bin?



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: validate form with rollover button

post HTML page in PHP www.computing.net/answers/webdevel/post-html-page-in-php/1756.html

JavaScript Validation - Form Action www.computing.net/answers/webdevel/javascript-validation-form-action/125.html

Buttons with frames help www.computing.net/answers/webdevel/buttons-with-frames-help/528.html