Once you have determined a particular field is invalid, all you need to do is change the style of the control using something like this...
CODE
<input type="text" name="nickname" <?php if (isset($user_bg) && ($user_bg == "red")) { echo "style=\"border: #FF0000 solid 1px;\""; } ?>>
What this is doing is using php inside an input element where it checks to see if the $user_bg is first set and that it is set to "red" (meaning that you had determined it was an error). If these conditions are true, echo a style tag which sets the border to a 1px solid red line.
I hope that makes some sense. Remember you can put php code output anywhere, even in the middle of an input tag.
Good luck!
"At DIC we be red line error detecting code ninjas!"
This post has been edited by Martyr2: 12 Jan, 2008 - 12:58 PM