Okay, I know this probably going to be flat out the dumbest question anyone has seen on here, and I apologize for this.
I am using a sendmail.php script and it works just fine but for some reason I cannot figure out how to color the inputs from the form in red.. or any color for that matter. I assume this is easily done, I was just trying to use <font color=********> $q1 </font>
here is my script I am trying to get all the form responses in red.
Thank you for any responses!
I am using a sendmail.php script and it works just fine but for some reason I cannot figure out how to color the inputs from the form in red.. or any color for that matter. I assume this is easily done, I was just trying to use <font color=********> $q1 </font>
here is my script I am trying to get all the form responses in red.
Code:
<?
$q1 = $_REQUEST['q1'] ;
$q2 = $_REQUEST{'q2'} ;
$q3 = $_REQUEST{'q3'} ;
$q4 = $_REQUEST['q4'] ;
$q5 = $_REQUEST['q5'] ;
$q6 = $_REQUEST['q6'] ;
$q7 = $_REQUEST['q7'] ;
$q8 = $_REQUEST['q8'] ;
$q9 = $_REQUEST['q9'] ;
$q10 = $_REQUEST['q10'] ;
$comments = $_REQUEST['comments'] ;
if (!isset($_REQUEST['q1'])) {
header( "Location: http://itsurvey.tblrock.com" );
}
elseif (empty($q1) || empty($q2) || empty($q3) || empty($q4) || empty($q5) || empty($q6) || empty($q7) || empty($q8) || empty($q9) || empty($q10)) {
?>
<html>
<head><title>Error</title></head>
<body>
<h1>Error</h1>
<p>
All of the questions must be answered before submitting your survey. Please press your browsers back button and make sure all of them are filled in.
</p>
</body>
</html>
<?php
}
else {
mail( "feedback@email.com", "Survey Response",
"The overall quality of phone support: \n$q1\n\nThe overall quality of Email support: \n$q2\n\nThe overall quality of on-site support: \n$q3\n\nThe IT department responds in a timely manner: \n$q4\n\nI feel the IT Department is knowledgeable and professional: \n$q5\n\nI feel the IT Department cares about my issues: \n$q6\n\nThe IT staff understands my needs: \n$q7\n\nThe IT staff has been courteous and helpful: \n$q8\n\nThe IT staff provides complete, accurate information to me: \n$q9\n\nOverall my experiences with the IT department have been positive: \n$q10\n\nComments: \n$comments",
"From: feedback@email.com" );
header( "Location: thankyou.html" );
}
?>
Thank you for any responses!
Comment