janim Posted August 8, 2007 Share Posted August 8, 2007 hello friends i wanna validate my form before the process operation i don't wanna let my visitor see the error before the page load again i tried this with javascript but it has alot of errors i wanna simple php code for this thanks Quote Link to comment https://forums.phpfreaks.com/topic/63842-validate-without-processing-help/ Share on other sites More sharing options...
trq Posted August 8, 2007 Share Posted August 8, 2007 i don't wanna let my visitor see the error before the page load again The only way to do this is with Javascript. i tried this with javascript but it has allot of errors I would suggest you post your code and a description of your errors in the Javascript board. Quote Link to comment https://forums.phpfreaks.com/topic/63842-validate-without-processing-help/#findComment-318192 Share on other sites More sharing options...
pranav_kavi Posted August 8, 2007 Share Posted August 8, 2007 I think u can refer tis post..may solv ur problem.. http://www.phpfreaks.com/forums/index.php/topic,153013.0.html Quote Link to comment https://forums.phpfreaks.com/topic/63842-validate-without-processing-help/#findComment-318285 Share on other sites More sharing options...
NArc0t1c Posted August 8, 2007 Share Posted August 8, 2007 Purely javascript. if (document.form.textbox != value){ alert("Incorrect"); } Another way that I think you want is by using AJAX. send the data and check it without reloading the page? There is some good tutorials on ajaxfreaks.com on how to do that. Quote Link to comment https://forums.phpfreaks.com/topic/63842-validate-without-processing-help/#findComment-318291 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.