Changing $_SESSION text colour

I have this code:
[php]

body { color:#FFF } <?php session_start(); include('configdb.php'); if(isset($_POST['submit'])) { //whether the username is blank if($_POST['username'] == '') { $_SESSION['error']['username'] = "User Name is required."; } //whether the email is blank if($_POST['email'] == '') { $_SESSION['error']['email'] = "E-mail is required."; } else { //whether the email format is correct if(preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9._-]+)+$/", $_POST['email'])) { //if it has the correct format whether the email has already exist $email= $_POST['email']; $sql1 = "SELECT * FROM user WHERE email = '$email'"; $result1 = mysqli_query($mysqli,$sql1) or die(mysqli_error()); if (mysqli_num_rows($result1) > 0) { $_SESSION['error']['email'] = "This email address is already being used."; } } else { //this error will set if the email format is not correct $_SESSION['error']['email'] = "Your email address is not valid."; } } //whether the password is blank if($_POST['password'] == '') { $_SESSION['error']['password'] = "Password is required."; } if(strlen($_POST['password']) < 6){ $_SESSION['error']['password'] = "Password is too short"; }

if(isset($_SESSION[‘error’]))
{
header(“Location: index.php”);
exit;
}
else
{

$username = $_POST[‘username’];
$email = $_POST[‘email’];
$password = $_POST[‘password’];
$tester = $_POST[‘tester’];
$com_code = md5(uniqid(rand()));

$sql = “INSERT INTO user (username, email, password, tester, com_code) VALUES (’$username’, ‘$email’, ‘$password’, ‘$tester’, ‘$com_code’)”;
$result2 = mysqli_query($mysqli,$sql) or die(mysqli_error());

if($result2)
{
$to = $email;
$subject = “Confirmation from Husha Innovations”;
$header = “Husha Innovations: Confirmation”;
$message = “Please click the link below to verify and activate your account. rn”;
$message .= “http://www.hushainnovations.comule.com/confirm.php?passkey=$com_code”;

$sentmail = mail($to,$subject,$message,$header);

if($sentmail)
{
echo “Your Confirmation Link Has Been Sent To Your Email Address.”;
}
else
{
echo “Cannot send Confirmation link to your e-mail address”;
}
}
}
}
?>

[/php]

Any validation error messages are shown in black writing which is no good on a black website. How do I make the text in a line like
[php]$_SESSION[‘error’][‘password’] = “Password is required.”;[/php]
appear in white

Thanks in advance

use div tag in ur error msg.

Your Password is required
” that should do it.
Sponsor our Newsletter | Privacy Policy | Terms of Service