i am trying a case statement that will input different results based on the town a user enters in a form .the code in the form is
<html>
<body>
<form action="relay.php" method="get">
town:<input type="text" name="town" />
<input type="submit" />
</form>
</body>
</html
while that one for case is
<?php
$destination="$_GET["town"]";
echo "Travelling to $destination<br />";
switch($destination){
case "las vegas ":
echo "bring an extra $500";
break;
case "amsterdam":
echo "bring an open mind";
break;
case "egypt":
echo "bring 15 bottles of spf 50 sunscreen";
break;
case "tokyo":
echo "bring lots of monet";
break;
case "caribbean islands":
echo "bring a swimsuit";
break;
default:
echo "bring lots of underwear";
break;
}
?>
i am having the error "Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\relay.php on line 2"