Recursion
21-01-2007, 05:48 PM
Hello,
Im trying to set up a mail handler but am getting this PHP Error:
Parse error: syntax error, unexpected T_VARIABLE in /home/tom/public_html/formtests/handler.php on line 4
Here is the file:
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$subject = $_POST['DansDiscos User Application']
$FullName = $_POST['FullName'];
$EmailAddress = $_POST['EmailAddress'];
$ChildWillBe = $_POST['ChildWillBe'];
$TypeofParty = $_POST['TypeofParty'];
$VenueAddress = $_POST['VenueAddress'];
$TeirAddress = $_POST['TeirAddress'];
$Telephone = $_POST['Telephone'];
$extra = $_POST['extra'];
$Aggreeq = $_POST['Aggreeq']
$messig ="
Name: $FullName
\n
Email: $EmailAddress
\n
Age Child Would Be (If Applicable): $ChildWillBe
\n
Party Type: $TypeofParty
\n
Address of Venue: $VenueAddress
\n
Address of Organiser: $TeirAddress
\n
Organisers Telepone: $Telephone
\n
Extras: $extra
\n
Has the organiser Aggred to our Terms And Conditions? $Aggreeq
";
$subject = $subject;
mail("[email protected]", $subject, $messig);
Header("Location: thanks.php");
}
else
{
echo 'ERROR';
}
?>
Im trying to set up a mail handler but am getting this PHP Error:
Parse error: syntax error, unexpected T_VARIABLE in /home/tom/public_html/formtests/handler.php on line 4
Here is the file:
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$subject = $_POST['DansDiscos User Application']
$FullName = $_POST['FullName'];
$EmailAddress = $_POST['EmailAddress'];
$ChildWillBe = $_POST['ChildWillBe'];
$TypeofParty = $_POST['TypeofParty'];
$VenueAddress = $_POST['VenueAddress'];
$TeirAddress = $_POST['TeirAddress'];
$Telephone = $_POST['Telephone'];
$extra = $_POST['extra'];
$Aggreeq = $_POST['Aggreeq']
$messig ="
Name: $FullName
\n
Email: $EmailAddress
\n
Age Child Would Be (If Applicable): $ChildWillBe
\n
Party Type: $TypeofParty
\n
Address of Venue: $VenueAddress
\n
Address of Organiser: $TeirAddress
\n
Organisers Telepone: $Telephone
\n
Extras: $extra
\n
Has the organiser Aggred to our Terms And Conditions? $Aggreeq
";
$subject = $subject;
mail("[email protected]", $subject, $messig);
Header("Location: thanks.php");
}
else
{
echo 'ERROR';
}
?>