DS928
asked on
Centering An Error Message
I have an error message that pops up. However, I can't figure out how to center it.
The Link.
http://davidschure.com/hello.php
I can't find "error_message" class either to make the text red.
if(trim($name) == '') {
$error = '<div class="error_message">Attention! You must enter your name.</div>';
} else if(trim($email) == '') {
$error = '<div class="error_message">Attention! Please enter a valid email address.</div>';
} else if(!isEmail($email)) {
$error = '<div class="error_message">Attention! You have enter an invalid e-mail address, try again.</div>';
} else if(trim($comments) == '') {
$error = '<div class="error_message">Attention! Please enter a comment.</div>';
} else if(trim($verify) == '') {
$error = '<div class="error_message">Attention! Please enter the verification number.</div>';
} else if(trim($verify) != '4') {
$error = '<div class="error_message">Attention! The verification number you entered is incorrect.</div>';
}
if($error == '') {
if(get_magic_quotes_gpc()) {
$comments = stripslashes($comments);
}
The Link.
http://davidschure.com/hello.php
I can't find "error_message" class either to make the text red.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad I could help!
ASKER