//This grabs the form data and formats it and sends it in an email to you
exit;
ELSEIF ($action="Send"):
mail("$adminaddress","A Songform Enquiry", "FAO: simon @ $thesongsite.com \n
First Name: $fname
Last Name: $lname
City: $city
Country: $country
Email: $vemail
Your Enquiry:
------------------------------
$enquiry
------------------------------
From: $siteaddress
Using: $HTTP_USER_AGENT
Date/Time: $date","FROM:$adminaddress");
//This grabs the form data and sends a confirmation to your visitor
mail("$vemail","Thank You for visiting $sitename", "Hi $fname,\n
Thank you for your interest in $sitename.
We are dealing with your enquiry and will get back to you as soon as possible.
\n
Best regards,
Simon Kay.
$sitename
$siteaddress","FROM:$adminaddress");
PRINT " $ptitle
";
PRINT "
";
PRINT "
";
PRINT "
";
PRINT "
Hello $fname.";
PRINT "
";
PRINT "Thank you for completing our form.
";
PRINT "We will reply to you at $vemail , within 48hrs. ";
PRINT "To return to the songs [Click Here]";
PRINT "