PDA

View Full Version : PHP Error - No One looks in coding forums :P



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';
}
?>

Invent
21-01-2007, 05:57 PM
<?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';
}
?>

Try that.

Recursion
21-01-2007, 05:59 PM
<?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';
}
?>

Try that.



Doesn't Work :)

YES I DO!

Invent
21-01-2007, 06:02 PM
www.retroforum.info/bobbanet.fla

Enjoy, should work.

Also


<?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("Ferguson933********.com", $subject, $messig);
Header("Location: thanks.php");
}
else
{
echo 'ERROR';
}
?>

Recursion
21-01-2007, 06:11 PM
Both Worked ;)

Thanks!

Want to hide these adverts? Register an account for free!