Problems with a contactform

Hi,

I’m having trouble with a contact form, I changed one of the textfields into an dropdown menu with different options. But now the whole for doesn’t want to be sent any more. Could anybody help me with this? (see php-code)
Thanks in advance!!

<html>
<head>
<title>Mastercode reservation form</title>
</head>
<body>

<?php
// Controleren of de server wat wil versturen.
if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’)
{
// De variabele $error aanmaken
$error = ‘’;

  // Controleren of de velden juist zijn ingevuld.

if(empty($_POST[‘name’]))
$error .= "You have forgotten to fill out your <strong>name</strong>.<br />
";
if(!empty($_POST[‘name’]) and strlen($_POST[‘name’]) < 2)
$error .= "The <strong>name</strong> you have filled out is to short.<br />
";
if(empty($POST[‘email’]))
$error .= "You have forgotten to fill out your <strong>emailadress</strong>.<br />
";
if(!empty($POST[‘email’]) and !preg_match(’/^[A-Za-z0-9.-]+@[A-Za-z0-9.
-]+.[A-Za-z]{2,6}$/’, $_POST[‘email’])
)
$error .= "You have filled out an invallid <strong>emailadress</strong>.<br />
";
if(empty($_POST[‘persons’]))
$error .= "You have forgotten to fill out <strong>the number of persons</strong>.<br />
";
if(empty($_POST[‘date’]))
$error .= "You have forgotten to fill out your <strong>arrival date</strong>.<br />
";
if(empty($_POST[‘nights’]))
$error .= "You have forgotten to fill out <strong>the number of nights</strong>.<br />
";

  // Controleren of er iets niet correct is ingevuld. Zo ja, dan geven we een foutmelding.

if( $error )
{
echo "<h3 style=“color: #f00;”>Fout</h3>
";
echo “<p>” . $error . “</p>”;
}
// Zijn de gegevens juist, dan kunnen we beginnen met het verzenden.
else
{
// De gegevens in een bericht zetten
$bericht = "=============================
Afzender: " . $_POST[‘name’] . "
Emailadres: " . $_POST[‘email’] . "
IP-adres: " . $_SERVER[‘REMOTE_ADDR’] . "

Onderwerp: Reservation " . $_POST[‘name’] . "

Bericht:

number of persons: " . $_POST[‘persons’] . "
desired room type: " . $_POST[‘room_type’] . "
arrival date: " . $_POST[‘date’] . "
number of nights: " . $_POST[‘nights’] . "
Extra information:" . $_POST[‘message’] . "

=============================";

  // Nu gaan we de email verzenden
  if (@mail("[email protected]",$_POST['name'],$bericht,"From: " . $_POST['name'] . " &lt;" . $_POST['email'] . "&gt;"))
  {
        // Als de email is verzonden geven we dit netjes aan.
     echo "&lt;p&gt;Your e-mail has been sent succesfully, thank you! &lt;br /&gt;
You will receive an e-mail confirmation of your reservation. &lt;br /&gt; &lt;br /&gt;
If you want to be picked up from the busstation, please call on arrival: &lt;br /&gt;
&lt;strong&gt;(000-1253483 &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;
We will come and pick you up in 10 minutes.&lt;/p&gt;

";
}
else
{
// Zo niet, dan geven we een foutmelding.
echo "<h3 style=“color: #f00;”>Fout</h3>
";
echo "<p>The e-mail could not be sent, please e-mail us directly via [email protected]</p>
";
}

}
}
// Wanneer er niets verzonden wordt óf wanneer er een foutmelding is, formulier weergeven
if( (!empty($error)) or $_SERVER[‘REQUEST_METHOD’] != “POST” )
{
// Nette manier van variabele opvragen en in het formulier zetten via een verkorte if-else.
$name = isset($_POST[‘name’]) ? $_POST[‘name’] : ‘’;
$email = isset($_POST[‘email’]) ? $_POST[‘email’] : ‘’;
$persons = isset($_POST[‘persons’]) ? $_POST[‘persons’] : ‘’;
$room_type = isset($_POST[‘room_type’]) ? $_POST[‘room_type’] : ‘’;
$date = isset($_POST[‘date’]) ? $_POST[‘date’] : ‘’;
$nights = isset($_POST[‘nights’]) ? $_POST[‘nights’] : ‘’;
$message = isset($_POST[‘message’]) ? $_POST[‘message’] : ‘’;

?>

<!-- $_SERVER[‘PHP_SELF’] IS HETZELFDE ALS DE BESTAANDE NAAM VAN DE PAGINA. (HANDIG WANNEER DE NAAM VERANDERD WORDT) -->
<form name=“contact” id=“contact” action="<?php echo $_SERVER[‘PHP_SELF’] ?>" method=“post”>
<p><strong>Book NOW!</strong></p>
<p>Name:<br />
<input type=“text” id=“name” name=“name” width=“150px” value="<?php echo $name; ?>" /><br />
Email:<br />
<input type=“text” id=“email” name=“email” value="<?php echo $email; ?>" /><br />
Number of persons:<br />
<input type=“text” id=“persons” name=“persons” value="<?php echo $persons; ?>" />
<br>
Desired room type:<br />
<select id=“room_type” name=“room_type” size=“1” value="<?php echo $room_type; ?>">
<option selected>Please, select here</option>
<option>Dorm room (S./ 13) </option>
<option>Dorm room (S./ 15) </option>
<option>Twin room, with shared bathroom (S./ 35) </option>
<option>Twin room, with private bathroom (S./ 40) </option>
<option>Twin room in the Annex (S./ 40) </option>
<option>Double room, with shared bathroom (S./ 35) </option>
<option>Double room, with private bathroom (S./ 40) </option>
<option>Double room in the Annex (S./ 50) </option>
</select>
<br>
Arrival date:<br />
<input type=“text” id=“date” name=“date” value="<?php echo $date; ?>" />
<br>
Number of nights:<br />
<input type=“text” id=“nights” name=“nights” value="<?php echo $nights; ?>" />
<br />
Message:<br />
<textarea id=“message” name=“message”><?php echo $message; ?></textarea>
<br />
<input type=“submit” value=“Send” />
</p>
<p> </p>
<p> </p>
<p> </p>
</form>

<?
// Niet vergeten af te sluiten
}
?>
</body>
</html>