Change the location of Error Message:header ("Location: $err");
Posted on 2006-05-28
I have a script as follows in my online PHP survey file:
___________ the script _______________________
$err = 'form.php?err=Must+Provide+Your+Name;
// if error: Redirect to form
if ($err != '')
When an invalid name is typed in, an error mesage reading "Must provide your name" shows up on the screen.
The problem is that the error message shows up at left bottom corner of the screen. I wonder whether the message may be made to show up at more visible location of the screen (if possible, right next to the "Name" textbox) and in diffrent font color (example: red) and different font size.
Hope you experts may help me!
May 28, 2006, at 3 am