tauchai83 Posted January 28, 2007 Share Posted January 28, 2007 i wonder why the user still can go on with the registration process successfully by clicking button "submit" although i have use some javascript validation like onkeyPress-check numeric, and onblur checkpassword...it should block user from clicking the "submit" button to proceed...there are error msg pop up for them, but somehow they manage to regsiter it.....how can i solve this? i use onSubmit and retun ValidateData() function (javascript)....can anyone explain where i did wrong? Quote Link to comment Share on other sites More sharing options...
mainewoods Posted January 28, 2007 Share Posted January 28, 2007 If javascript is turned off in the users browser, none of your js code executes. Which is why server side data validation is mandatory even if you do browser side validation. The two choices are do server side data validation or do browser side data validation [i]plus[/i] server side data validation. As well if a javascript error occurs before the 'return false;' statement that cancels normal form submital is reached, then the form will go ahead and submit anyways. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.