using javascript within php
| From: | Ross Hulford | Date: | Mon, 07 Mar 2005 17:01:27 +0000 |
| Subject: | using javascript within php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-210174@lists.php.net to get a copy of this message | ||
I want to set focus on a text area with javascript if the entry by the user
is not what I want.
This is what i have so far.....
<?php
if (isset($submitted){
if(empty($name)) {
$fname_error = " *Please Enter your firstname or initial";
//the code to set focus to the textbox should go here
}
}
?>