Actually you can (and you should anyway) always check the post variables in the second page, but this code prevents users clicking "submit" buttons if JavaScript disabled:
PHP Code:
Quote:
<SCRIPT TYPE="TEXT/JAVASCRIPT" LANGUAGE="JAVASCRIPT">
function enable(){
var formQ = document.forms.length;
for(var xx=0; xx<formQ; xx++) {
var formElementQ = document.forms[xx].elements.length;
for(var yy=0; yy<formElementQ; yy++){
if(document.forms[xx].elements[yy].type.toLowerCase()=="submit")
{
document.forms[xx].elements[yy].disabled = false;
}
}
}
}
</SCRIPT>
|
Put this on top of your page, and call the function from BODY tag. You also have to disable all your submit buttons:
PHP Code:
Quote:
<BODY onLoad="enable()">
<INPUT TYPE="Submit" NAME="Send" DISABLED>
|