|
[SOLVED] parse error, unexpected T_EXIT in php mail script
I have created a hmlt/ php consultation form (which works fine) that sends to this php script to send the results to me via email.
No matter what I try, I keep getting this error message:
Parse error: parse error, unexpected T_EXIT, expecting ',' or ';' in /homepages/36/d222381006/htdocs/consultemail.php on line 65
Can anyone see anything obvious that I am missing?
(Sorry for all the variables)
Thank you so much in advance for your help!
- PHP: Select all
<?php
$bride = $_POST["bride"];
$groom = $_POST["groom"];
$brideemail = $_POST["brideemail"];
$date = $_POST["date"];
$time = $_POST["time"];
$ceremony = $_POST["ceremony"];
$location1 = $_POST["location1"];
$city = $_POST["city"];
$reception = $_POST["reception"];
$time2 = $_POST["time2"];
$location2 = $_POST["location2"];
$bridephone = $_POST["bridephone"];
$groomphone = $_POST["groomphone"];
$flowerbride = $_POST["flowerbride"];
$colorbride = $_POST["colorbride"];
$flowernotbride = $_POST["flowernotbride"];
$colornotbride = $_POST["colornotbride"];
$flowergroom = $_POST["flowergroom"];
$colorgroom = $_POST["colorgroom"];
$flowernotgroom = $_POST["flowernotgroom"];
$colornotgroom = $_POST["colornotgroom"];
$allergies = $_POST["allergies"];
$allergicto = $_POST["allergicto"];
$hobbies = $_POST["hobbies"];
$maids = $_POST["maids"];
$maidgowns = $_POST["maidgowns"];
$men = $_POST["men"];
$menswear = $_POST["menswear"];
$children = $_POST["children"];
$gown = $_POST["gown"];
$groomswear = $_POST["groomswear"];
$style = $_POST["style"];
$trendy = $_POST["trendy"];
$romantic = $_POST["romantic"];
$traditional = $_POST["traditional"];
$exotic = $_POST["exotic"];
$natural = $_POST["natural"];
$dreamy = $_POST["dreamy"];
$clean = $_POST["clean"];
$classic = $_POST["classic"];
$extravagant = $_POST["extravagant"];
$lush = $_POST["lush"];
$simple = $_POST["simple"];
$soft = $_POST["soft"];
$bright = $_POST["bright"];
$artistic = $_POST["artistic"];
$green = $_POST["green"];
$unique = $_POST["unique"];
$glamorous = $_POST["glamorous"];
$sophisticated = $_POST["sophisticated"];
$earthy = $_POST["earthy"];
$detailed = $_POST["detailed"];
$eclectic = $_POST["eclectic"];
$glitzy = $_POST["glitzy"];
$festive = $_POST["festive"];
$garden = $_POST["garden"];
$westcoast = $_POST["westcoast"];
$boho = $_POST["boho"];
$magical = $_POST["magical"];
$ethnic = $_POST["ethnic"];
$modern = $_POST["modern"];
$timeless = $_POST["timeless"];
$styledesc = $_POST["styledesc"];
$wantflowers = $_POST["wantflowers"];
$importance = $_POST["importance"];
$personal = $_POST["personal"];
$cerflowers = $_POST["cerflowers"];
$recflowers = $_POST["recflowers"];
$linens = $_POST["linens"];
$rentals = $_POST["rentals"];
$setup = $_POST["setup"];
$budget = $_POST["budget"];
# This part submits a notification when
# the form is submitted
// Email address for copies to be sent to -
$emailto = "[email="michellemc5@clearwire.net"]michellemc5@clearwire.net[/email]";
// Notification email subject text for copies
$esubject = "consultation form submission";
// Email body text for notifications
$emailtext = " $bride has submitted a consultation request using an email address of $brideemail \n
$bride and $groom are planning a wedding for $date at $time \n
$ceremony at $location1 in $city. \n
The reception will be $reception at $time2 at $location2.\n
$bride can be contacted at $brideemail and $bridephone. \n
$groom can be contacted at $groomphone. \n
The bride likes $flowerbride flowers and the color $colorbride. \n
She DISLIKES $flowernotbride flowers and the color $colornotbride. \n
The groom likes $flowergroom flowers and the color $colorgroom. \n
He DISLIKES $flowernotgroom flowers and the color $colornotgroom. \n
Allergies? $allergies If yes, specify $allergicto \n
The couple enjoys $hobbies.\n
The $maids bridesmaids will be wearing $maidgowns \n
and the $men groomsmen will be wearing $menswear. \n
There will be other bridal party members of $children. \n
The bride's gown is $gown. \n
The groom's attire is $groomswear.\n
The wedding will be $style.\n
The wedding style can be described as $trendy, $romantic, $traditional, $exotic, $natural, \n
$dreamy, $clean, $classic, $extravagant, $lush, $simple, $soft, \n
$bright, $artistic, $green, $unique, $glamorous, $sophisticated, $earthy, \n
$detailed, $eclectic, $glitzy, $festive, $garden, $westcoast, $boho, \n
$magical, $ethnic, $modern, $timeless \n
and $styledesc. \n
The bride's thoughts on the flowers she wants: $wantflowers \n
She feels that flowers are important to her wedding: $importance \n
She would like us to provide: $personal, $cerflowers, $recflowers, \n
$linens, $rentals, $setup \n
Her budget is $budget.";
# This function sends the email
@mail("$emailto", "$esubject", "$emailtext", "From: $brideemail\n");
echo "The consultation form has been submitted. $bride, we will contact you soon to set an appointment to discuss flowers for your $date wedding. Thank you!";
exit();
?>
Last edited by Rakuli; Dec 12th, 2007 at 07:29.
Reason: [code] became [php]
|