I have this code:
[php]
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”;
}
}
}
}
?>
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