View Full Version : Required fields script problem...

01-10-2008, 06:34 AM
1) Script Title: required field check

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/requiredcheck.htm

3) Describe problem: I got the validation to work, but when all fields ARE completed and submit is pressed, the form reloads/resets itself and posts the form code into the address bar.

I think it is because I don't understand where to place the

<form name="Signups" onsubmit="return formCheck(this);">


Here is a link to my form page WITHOUT the above tag. You can fill it out or not and hit submit and the form works.


Here is the same page with the onsubmit tag added on right after the
<form METHOD=POST ACTION="/cgi-bin/FormMail"> TAG . The mandatory field window pops up as designed but once the fields are filled in, like I said, above it reloads the page and appends all the formail code into the address bar.


Thanks for your help.

01-16-2008, 04:32 PM
Try this in one form tag:

<form name="Signups" method="post" action="/cgi-bin/FormMail" onsubmit="return formCheck(this);">