Re: [PHP] Script Question

2002-11-21 Thread Ray Hunter
this should be researched in the javascript archives: google -> groups -> javascript this is probably what you want var mytest = document.myform.myfield.value; if( mytest.toString() == "" ) alert( "No text in " + document.myform.myfield.name ); but i would suggest getting on that group

Re: [PHP] Script Question

2002-11-21 Thread PHP List
Same problem, I still get an undefined error. > Try using the string functions. > > document.myform.mytextfield.value or something... > > On Thu, 2002-11-21 at 13:25, PHP List wrote: > > Hi, > > This is more of a Javascript question so please forgive. > > > > I generate a dynamic form with php. >

Re: [PHP] Script Question

2002-11-21 Thread Ray Hunter
Try using the string functions. document.myform.mytextfield.value or something... On Thu, 2002-11-21 at 13:25, PHP List wrote: > Hi, > This is more of a Javascript question so please forgive. > > I generate a dynamic form with php. > > I need to be able to test in javascript if a certain field