sandhya Posted May 2, 2009 Share Posted May 2, 2009 Hi all, I"ve a form in php. In that form i "ve 2 submit buttons & 1 normal button. The problem is when ever i click any button, i have to proceed to a particular function. But i'm not able to proceed. I'm able to enter into the function. But not able to proceed at form field validation. In error console, it displaying an error like document.form1.nrec is not defined.This error is for every form field. Is there any problem with the form. Please help me. Quote Link to comment https://forums.phpfreaks.com/topic/156508-problem-with-form/ Share on other sites More sharing options...
Ken2k7 Posted May 2, 2009 Share Posted May 2, 2009 My best guess is - document.forms.form1.nrec? sandhya - people aren't psychic! You can't expect us to know what's wrong and offer help when we have nothing to work with. Post up some code. Quote Link to comment https://forums.phpfreaks.com/topic/156508-problem-with-form/#findComment-824387 Share on other sites More sharing options...
the182guy Posted May 4, 2009 Share Posted May 4, 2009 These two examples will get the element value: var nrec = document.myFormName.nrec.value; var nrec = document.forms["myFormName"].nrec.value; Quote Link to comment https://forums.phpfreaks.com/topic/156508-problem-with-form/#findComment-825609 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.