View Full Version : Substitute for onsubmit (when JS is disabled) [SOLVED]

07-06-2007, 04:16 AM
Hello everyone, currently I've got an onsubmit script:

<form id="register_form" action = "<?php echo $_SERVER['PHP_SELF'] ?>" method = "post" enctype="multipart/form-data" onsubmit="return validateForm( this );">

However when JS is disabled the script won't submit. Is there a way I can work around this?


07-06-2007, 05:45 AM
<input type="submit" name="anythingotherthansubmit" value="Submit Form">

07-06-2007, 04:28 PM
Of course I have a submit button...

<input type="submit" name="register" value="Register" />

But I'm asking about alternatives for the form handeling

07-06-2007, 04:44 PM
Okay apparently the fault lay with the PHP script and it was infact submitting.

Sorry! :P

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum