I want to keep my div layout to my site when being directed with my error codes. Thing is I don't want multiple errors to have two separate css/div layouts. Here's what I got so far:
if(!preg_match($email_exp,$email_from)) {
$error_message .= '<font color="blue">The Email Address you entered does not appear to be valid.<br /></font>';
}
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$first_name)) {
$error_message .= 'The First Name you entered does not appear to be valid.<br />';
}
if(!preg_match($string_exp,$last_name)) {
$error_message .= 'The Last Name you entered does not appear to be valid.<br />';
}
if(strlen($comments) < 2) {
$error_message .= 'The Comments you entered do not appear to be valid.<br />';
I want them all to open up on a page and have the same layout. If there are more than one errors, I want them to not each have separate code. How do I do that?