roondog
05-23-2007, 05:13 PM
<?php
if(isset($_POST['submit'])) {
$to = "roondog@roondogid.co.uk";
$subject = "Player of year do";
$name_field = $_POST['name'];
$starter = $_POST['starter'];
$main = $_POST['main'];
$dessert = $_POST['dessert'];
$player = $_POST['poy'];
$noeat = $_POST['noeat'];
$body = "From: $name_field\n My meal choice is:\n $starter\n $main\n $dessert\n My choice for player of the year is $player\n $noeat ;
echo 'cheers';
mail($to, $subject, $body);
}
else
{
echo 'wrong page';
}
?>
I'm getting an error on line 24 which is ?> how can that be an error.
if(isset($_POST['submit'])) {
$to = "roondog@roondogid.co.uk";
$subject = "Player of year do";
$name_field = $_POST['name'];
$starter = $_POST['starter'];
$main = $_POST['main'];
$dessert = $_POST['dessert'];
$player = $_POST['poy'];
$noeat = $_POST['noeat'];
$body = "From: $name_field\n My meal choice is:\n $starter\n $main\n $dessert\n My choice for player of the year is $player\n $noeat ;
echo 'cheers';
mail($to, $subject, $body);
}
else
{
echo 'wrong page';
}
?>
I'm getting an error on line 24 which is ?> how can that be an error.