I need help desperately!
This is my order form:
www.momscottage.com/order.php.
I need to know what code to put in orders.php (the file that mails me results) to allow it to get the variables from order.php.
When the form is filled out and submitted, I recieve the email and the subject works, but none of the form data is displayed.
I started learning php 2 days ago, wrote what I have in orders.php within hours, but cannot for the life of me figure this bit out!
Please explain!
This is orders.php so far:
<?php
$my_email="mcenquiries@hotmail.com";
$todayis=date("l,F,j,Y,g:i a");
$message="$todayis [EST] \n
Last Name: $lastname \n
FirstName: $firstname \n
Email Address:$email \n
Name Poem 1: $namepoememailone \n
Name Poem 2: $namepoememailtwo \n
Name Poem 3: $namepoememailthree \n
Name Poem 4: $namepoememailfour \n
Name Poem 5: $namepoememailfive \n
Name Poem 6: $namepoememailsix \n
Name Poem 7: $namepoememailseven \n
Name Poem 8: $namepoememaileight \n
Name Poem 9: $namepoememailnine \n
Name Poem 10: $namepoememailten \n
Name Poem Print Postal Name: $namepoempostalname \n
Name Poem Print Postal Flat No: $namepoemflatno \n
Name Poem Print Postal House No: $namepoemhouseno \n
Name Poem Print Postal Street: $namepoemstreet \n
Name Poem Print Postal Suburb: $namepoemsuburb \n
Name Poem Print Postal State: $namepoemstate \n
Name Poem Print Postal Postcode: $namepoempostcode \n
Name Poem Print 1: $namepoemprintone \n
Name Poem 1 Birthdate: $namepoemprintonedate \n
Name Poem 1 Birthmonth: $namepoemprintonemonth \n
Name Poem 1 Birthyear: $namepoemprintoneyear \n
Name Poem 1 Background: $namepoemprintonebackground \n
Name Poem Print 2: $namepoemprinttwo \n
Name Poem 2 Birthdate: $namepoemprinttwodate \n
Name Poem 2 Birthmonth: $namepoemprinttwomonth \n
Name Poem 2 Birthyear: $namepoemprinttwoyear \n
Name Poem 2 Background: $namepoemprinttwobackground \n
Name Poem Print 3: $namepoemprintthree \n
Name Poem 3 Birthdate: $namepoemprintthreedate \n
Name Poem 3 Birthmonth: $namepoemprintthreemonth \n
Name Poem 3 Birthyear: $namepoemprintthreeyear \n
Name Poem 3 Background: $namepoemprintthreebackground \n
Name Poem Print 4: $namepoemprintfour \n
Name Poem 4 Birthdate: $namepoemprintfourdate \n
Name Poem 4 Birthmonth: $namepoemprintfourmonth \n
Name Poem 4 Birthyear: $namepoemprintfouryear \n
Name Poem 4 Background: $namepoemprintfourbackground \n
Name Poem Print 5: $namepoemprintfive \n
Name Poem 5 Birthdate: $namepoemprinfivedate \n
Name Poem 5 Birthmonth: $namepoemprintfivemonth \n
Name Poem 5 Birthyear: $namepoemprintfiveyear \n
Name Poem 5 Background: $namepoemprintfivebackground \n
Personal Poem Email 1: $personalpoemone \n
Personal Poem Email 2: $personalpoemtwo \n
Personal Poem Print Postal Name: $personalpoetrypostalname \n
Persoanl Poem Print Postal Flat No: $personalpoetryflatno \n
Personal Poem Print Postal House No: $personalpoetryhouseno \n
Personal Poem Print Postal Street: $personalpoetrystreet \n
Personal Poem Print Postal Suburb: $personalpoetrysuburb \n
Personal Poem Print Postal Postcode: $personalpoetrypostcode \n
Personal Poem Print 1: $personalpoemprintone \n
Personal Poem 1 Background: $personalpoemprintonebackground \n
Personal Poem Print 2: $personalpoemprinttwo \n
Personal Poem 2 Background: $personalpoemprinttwobackground \n
Poem By Topic: $topicpoem \n
Poem By Topic Postal Name: $poembytopicpostalname \n
Poem By Topic Postal Flat No: $poembytopicflatno \n
Poem By Topic Postal House No: $poembytopichouseno \n
Poem By Topic Postal Street: $poembytopicstreet \n
Poem By Topic Postal Suburb: $poembytopicsuburb \n
Poem By Topic Postal State: $poembytopicstate \n
Poem By Topic Postal Postcode: $poembytopicpostcode \n
Topic Poem Print: $topicpoemprinti \n
Topic Poem Background: $ibackground \n
Topic Poem Print: $topicpoemprintforeverlove \n
Topic Poem Background: $foreverlovebackground \n
Topic Poem Print: $topicpoemprintthepooranimalkingdom \n
Topic Poem Background: $thepooranimalkingdombackground \n
Topic Poem Print: $topicpoemprinttopicpoemprintwhoneedsfur \n
Topic Poem Background: $whoneedsfurbackground \n
Topic Poem Print: $topicpoemprinttopicpoemprintforherforhim \n
Topic Poem Background: $forherforhimbackground \n
Topic Poem Print: $topicpoemprinttopicpoemprintforhimforher \n
Topic Poem Background: $forhimforherbackground \n
Payment Method: $paymentpaypal \n
Payment Method: $paymentdd \n
Payment Method: $paymentmo \n
";
$from = "From:$email\r\n";
mail($my_email,"MC Order",$message,$from,$headers);
{
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
}
header("Location:http://www.momscottage.com/thankyou.html");
?>