PDA

View Full Version : submit once form validation



Peter Johnson
06-05-2007, 11:39 PM
1) Script Title: Submit Once Form Validation

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/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?:



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

thetestingsite
06-06-2007, 01:07 AM
Yes, it would be like so for your form:



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