|
No, not reliably. Not all browsers fully support the psuedoclass :hover for all tags. I did this user PHP:
<input name="tbEmail" value="<?= $_POST['tbEmail'] ?>" type="text" id="tbEmail"<?= $BGtbEmail ?> />
First of all, this form POSTs to itself. In a PHP file included at the top of the page I do all my verification of the input field. If it verifies then I do nothing and at the end of the whole verification I use a:
headers ("Location:nextpage.html");
If it doesn't verify then I set a $invalidform flag variable and set $BGtbEmail like:
$BGtbEmail = ' style="background-color: #ff0000;"';
Watch the quotes as it is easy to get them messed up. I used scary pure red but obviously you can use whatever color you want. There are some sneaky ways to do this if you are validating a bunch of stuff.
Have fun and hope this helps.
__________________
Experimenting
|