I got a table row which contains an id which is below:
<td id='errormsg'>$errormsg</td>
In the css page, the `#errormsg’ id turns the text color to red as shown below in the seperate css file:
#errormsg{
color:red;
}
But I have a little situation. I have an if statement here:
if(mail($getemail, $subject, $message, $headers)){
$errormsg = "You have been Registered. You must Activate your Account from the Activation Link sent to <b>$getemail</b>";
}
Now what I want to happen is that if this if statement is met, I want the $errormsg to change the font color from red to green. Is this actually possible?
1 Answer