Can you help with colouring text in php code?

Mia Rose

New member
I'm new to website coding, and I found a contact form online which is exactly what I need for the site I'm working on right now. However I need to change the font colour for the words 'email' 'message' and 'subject' to hex code #1A2C5A as the box is on a white background. Can anyone help me out? The full code is copied below =]





<div align="center">

<?php
function spamcheck($field)
{
//filter_var() sanitizes the e-mail
//address using FILTER_SANITIZE_EMAIL
$field=filter_var($field, FILTER_SANITIZE_EMAIL);

//filter_var() validates the e-mail
//address using FILTER_VALIDATE_EMAIL
if(filter_var($field, FILTER_VALIDATE_EMAIL))
{
return TRUE;
}
else
{
return FALSE;
}
}

if (isset($_REQUEST['email']))
{//if "email" is filled out, proceed

//check if the email address is invalid
$mailcheck = spamcheck($_REQUEST['email']);
if ($mailcheck==FALSE)
{
echo "Invalid input";
}
else
{//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail("[email protected]", "Subject: $subject",
$message, "From: $email" );
echo "Thank you, we'll get back to you soon.";
}
}
else
{//if "email" is not filled out, display the form
echo "<form method='post' action='mailform.php'>
Email: <input name='email' type='text'/><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='10' cols='40'>
</textarea><br />
<input type='submit' />
</form>
</div>
 
Back
Top