Results 1 to 2 of 2

Thread: submit once form validation

  1. #1
    Join Date
    Feb 2007
    Posts
    36
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default submit once form validation

    1) Script Title: Submit Once Form Validation

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...submitonce.htm

    3) Describe problem: This is a great idea. My question is how would I incorporate this in my form. Would I just add onSubmit="submitonce(this)" after the action=cgi part?:

    Code:
    <form method="post" action="/cgi-bin/form.cgi">
    <textarea name="comm"  rows=4 cols=35>Products/services of interest: </textarea>
    <br>
    	<input type="submit" value="send">
    	<input type="reset" value="clear">
    
    </form>

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Yes, it would be like so for your form:

    Code:
    <form method="post" action="/cgi-bin/form.cgi" onSubmit="submitonce(this)">
    <textarea name="comm"  rows=4 cols=35>Products/services of interest: </textarea>
    <br>
    	<input type="submit" value="send">
    	<input type="reset" value="clear">
    
    </form>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •