Greetings,
I'm still something of a newbie to html/php/mysql.
I have a php/html form with several fields of type "input". If the user
enters improper data in a particular field and clicks the Submit button,
the php script has to trap it and return a javascript error message box
with an OK button. That part I've already got down.
But, you know how in Visual Basic you can set the focus on the offending
field on a form, so if the user gets a Message Box with an error message
and clicks OK, the form goes something like,
myForm!myField. SetFocus
Is there an equivalent way in php/html way do this?
I'm still something of a newbie to html/php/mysql.
I have a php/html form with several fields of type "input". If the user
enters improper data in a particular field and clicks the Submit button,
the php script has to trap it and return a javascript error message box
with an OK button. That part I've already got down.
But, you know how in Visual Basic you can set the focus on the offending
field on a form, so if the user gets a Message Box with an error message
and clicks OK, the form goes something like,
myForm!myField. SetFocus
Is there an equivalent way in php/html way do this?
Comment