...

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



SMC
07-06-2007, 05: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?

Thanks!!

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

SMC
07-06-2007, 05: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

SMC
07-06-2007, 05: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