Results 1 to 2 of 2

Thread: Required fields script problem...

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Required fields script problem...

    1) Script Title: required field check

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...uiredcheck.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);">

    tag..

    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.

    http://www.ukiahspeedwaymx.com/signupO3.htm



    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.

    http://www.ukiahspeedwaymx.com/signupO2.htm


    Thanks for your help.

  2. #2
    Join Date
    Dec 2007
    Location
    Muenster - Germany
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try this in one form tag:

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •