PHP Page won't work. I can't find error in code myself?

jayadurron

New member
I am creating a PHP page for a class, but after FTP-ing it up to the server, it won't work. I cannot figure out why.

<html>
<head>
<title>Student Questionnaire</title>
<style type="text/css">
h1 {text-align:center; font-family:Verdana }
p {font-size:24px }
</style>
</head>

<body style="background-color:#bad3ed>

<h1>Someplace Academic Library</h1>
<h1>Student Questionnaire</h1>

<?php

echo("<p>Thank you for completing the Student Questionnaire. Here is the information you submitted:</p>");

echo("<p>1. You are currently a $_POST[classyear].</p>");

if($_POST[orientation]=="yes")
{
echo("<p>2. You have completed a library orientation program.</p>");
}
else
{
echo("<p>2. You have not completed a library orientation program.</p>");
}

if ($_POST[library_visit])
{
echo("<p>3. You stated that you visit the library $_POST[library_visit].</p>");
}
else
{
echo("<p>3. You did not tell us how often you've visited the library.</p>");
}

if ($_POST[reference])
{
echo("<p>4. Your satisfaction with our reference service is: $_POST[reference].</p>");
}
else
{
echo("<p>4. You did not tell us about your level of satisfaction with our reference service.</p>");
}

if ($_POST[improvements])
{
echo("<p>5. You suggested we could improve reference services by:$_POST[improvements].</p>");
}
else
{
echo("<p>5. You did not provide any suggestions.</p>");
}

if ($_POST)
{
echo("<p>6. Your email address is: $_POST[email].</p>");
}
else
{
echo("<p>6. You did not provide an email address.</p>");
}

?>

<p>If you wish to resubmit your survey, please go back to the <a href="http://web.simmons.edu/~wolfev/LIS_488/LIS488_Table_assignment_Wolf.html">Original Survey</a>

<h4 style="text-align:center;font-weight:bold;font-family:Verdana">&copy 2010 - All Rights Reserved - Simmons Library</h4>

</body>
</html>
Thanks Colinc.

That one missing double quote fixed everything!!!!!!!!!!!!!!!!!
 
Back
Top