Guest_imported
New member
- Jan 1, 1970
- 0
hi,
i'm using a script in order to prevent multiple record entries if the user clicks the submit button more than once. right now it is not working. i can't figure out what's wrong...
<!--here's my javascript in the $$HTML head field>
<script language=\"JavaScript\">
var isSubmitted = \"NO\";
function checkSubmitted() {
if (isSubmitted ==\"NO\"
{
isSubmitted = \"YES\";
document._add.submit();}
}
</script>
<!--here's my form tag plus my submit tag>
<form action="stuadd2.cfm" method="post" name="add" onSubmit= "return checkSubmitted(add);">
<input type="Submit" value="Add" onClick="checkSubmitted()">
i'm using a script in order to prevent multiple record entries if the user clicks the submit button more than once. right now it is not working. i can't figure out what's wrong...
<!--here's my javascript in the $$HTML head field>
<script language=\"JavaScript\">
var isSubmitted = \"NO\";
function checkSubmitted() {
if (isSubmitted ==\"NO\"
isSubmitted = \"YES\";
document._add.submit();}
}
</script>
<!--here's my form tag plus my submit tag>
<form action="stuadd2.cfm" method="post" name="add" onSubmit= "return checkSubmitted(add);">
<input type="Submit" value="Add" onClick="checkSubmitted()">