My PHP validation don't kick in when JS is disabled?
Hello. I've written a form that has JavaScript validation in it, as well as PHP validation - just in case JavaScript is disabled. Well, that's the idea anyhow...
Thing is, I'm using a onsubmit="return fnc_FormSubmit(this);" attribute in my form tag... It works great, when JavaScript is enabled. But when JavaScript is not enabled, I thought that the browser would bypass this attribute and just submit the form anyway - that way, I thought my PHP validation code would start working... But it don't seem to happen. I know my PHP validation code works, because if I take out that onsubmit attribute altogether, my PHP validation works just fine.
Bookmarks