biomike
01-06-2010, 03:20 PM
please can someone help me with this form that wont submit.
http://www.bioenergyhealing.org.uk/referralThanks
the code for the php script is
<?phperror_reporting (E_ERROR );//---------------------------- Setting the Body of Email (message) --------------------$message = "Name: " . $sender_name . "\n" . "Address: " . $sender_address . "\n" . "Town: " . $sender_town . "\n" . $sender_county . "\n" . "Postcode: " . $sender_postcode . "\n" . "Country: " . $sender_country . "\n" . "\n" . "Sender Email: " . $sender_mail . "\n" . "Phone: " . $tel . "\n" . "Information Requested: " . "\n" . $biohealing . "\n" . $info121 . "\n" . $sender_training . "\n" . "User wants to book: " . "\n" . $sender_book121 . "\n" . $sender_bookworkshop . "\n" . "Please register my details for: " . "\n" . $sender_mailinglist . "\n" . $sender_draw . "\n" . "The user left this message: " . "\n" . $sender_message . "\n" . "The comment submitted was: " . "\n" . $sender_comments . "\n" . "How they found this site: " . "\n" . $source . "\n" . "The magazine referal if selected was: " . $referral . "\n" . "\n";//-------------------------------------- Set and Check Vars ---------------------------$ipaddy = getenv(HTTP_X_FORWARDED_FOR);if($ipaddy == 0){ $ipaddy = $REMOTE_ADDR;}$date = gmDate("D d F y");$from = "Message sent by " . $email . " from " . $ipaddy;$mail_to = "web@raphayad.com";$mail_subject = "BioEnergyhealing Form";$mail_body = $message . "\n" ."-----------------------------\n" . $from . "\n" . $date;$ipdate = "ips.txt";$whatever = 1;$con_to = $sender_mail;$con_subject = "Thank you for your request";$con_body = "This is an automated response. Your information sent from the IP: $ipaddy, was accepted and is being processed (copied below). \n" . "\n" . "Thank you for your interest.\n" . "Should your enquiry require a response we hope to come back to you within 2 working days." . "\n \nAdministration Team " . "\nBioenergy Healing Clinic\n" . "\n" . "http://www.bioenergyhealing.org.uk\n" . "\n" . "NB: This is an automated email." . "\n" . "\n" . "Name: " . $sender_name . "\n" . "Address: " . $sender_address . "\n" . "Town: " . $sender_town . "\n" . "Country: " . $sender_country . "\n" . "Postcode: " . $sender_postcode . "\n" . "Sender Email: " . $sender_mail . "\n" . "Phone: " . $tel . "\n" . "Information Requested: " . "\n" . $biohealing . "\n" . $info121 . "\n" . $sender_training . "\n" . "User wants to book: " . "\n" . $sender_book121 . "\n" . $sender_bookworkshop . "\n" . "Please register my details for: " . "\n" . $sender_mailinglist . "\n" . $sender_draw . "\n" . "The user left this message: " . "\n" . $sender_message . "\n" . "The comment submitted was: " . "\n" . $sender_comments . "\n" . "How they found this site: " . "\n" . $source . "\n" . "The magazine referal if selected was: " . $referral . "\n" . "\n";//------------------------------ Redo Function --------------------------------------function redo($error){ readfile("enq_error.html"); die();}//------------------------------------ Send Mail Code -----------------------------if(mail($mail_to, $mail_subject, $mail_body, "From: webdata@bioenergyhealing.org.uk\r\nReply-to: webdata@bioenergyhealing.org.uk")){ readfile("submitted.htm"); mail($con_to, $con_subject, $con_body, "From: webdata@bioenergyhealing.org.uk\r\nReply-to: webdata@bioenergyhealing.org.uk");}//---------------------------- Reproduce the Previous HTML page --------------------else{ redo('Please try again');} ?>
Michael
http://www.bioenergyhealing.org.uk/referralThanks
the code for the php script is
<?phperror_reporting (E_ERROR );//---------------------------- Setting the Body of Email (message) --------------------$message = "Name: " . $sender_name . "\n" . "Address: " . $sender_address . "\n" . "Town: " . $sender_town . "\n" . $sender_county . "\n" . "Postcode: " . $sender_postcode . "\n" . "Country: " . $sender_country . "\n" . "\n" . "Sender Email: " . $sender_mail . "\n" . "Phone: " . $tel . "\n" . "Information Requested: " . "\n" . $biohealing . "\n" . $info121 . "\n" . $sender_training . "\n" . "User wants to book: " . "\n" . $sender_book121 . "\n" . $sender_bookworkshop . "\n" . "Please register my details for: " . "\n" . $sender_mailinglist . "\n" . $sender_draw . "\n" . "The user left this message: " . "\n" . $sender_message . "\n" . "The comment submitted was: " . "\n" . $sender_comments . "\n" . "How they found this site: " . "\n" . $source . "\n" . "The magazine referal if selected was: " . $referral . "\n" . "\n";//-------------------------------------- Set and Check Vars ---------------------------$ipaddy = getenv(HTTP_X_FORWARDED_FOR);if($ipaddy == 0){ $ipaddy = $REMOTE_ADDR;}$date = gmDate("D d F y");$from = "Message sent by " . $email . " from " . $ipaddy;$mail_to = "web@raphayad.com";$mail_subject = "BioEnergyhealing Form";$mail_body = $message . "\n" ."-----------------------------\n" . $from . "\n" . $date;$ipdate = "ips.txt";$whatever = 1;$con_to = $sender_mail;$con_subject = "Thank you for your request";$con_body = "This is an automated response. Your information sent from the IP: $ipaddy, was accepted and is being processed (copied below). \n" . "\n" . "Thank you for your interest.\n" . "Should your enquiry require a response we hope to come back to you within 2 working days." . "\n \nAdministration Team " . "\nBioenergy Healing Clinic\n" . "\n" . "http://www.bioenergyhealing.org.uk\n" . "\n" . "NB: This is an automated email." . "\n" . "\n" . "Name: " . $sender_name . "\n" . "Address: " . $sender_address . "\n" . "Town: " . $sender_town . "\n" . "Country: " . $sender_country . "\n" . "Postcode: " . $sender_postcode . "\n" . "Sender Email: " . $sender_mail . "\n" . "Phone: " . $tel . "\n" . "Information Requested: " . "\n" . $biohealing . "\n" . $info121 . "\n" . $sender_training . "\n" . "User wants to book: " . "\n" . $sender_book121 . "\n" . $sender_bookworkshop . "\n" . "Please register my details for: " . "\n" . $sender_mailinglist . "\n" . $sender_draw . "\n" . "The user left this message: " . "\n" . $sender_message . "\n" . "The comment submitted was: " . "\n" . $sender_comments . "\n" . "How they found this site: " . "\n" . $source . "\n" . "The magazine referal if selected was: " . $referral . "\n" . "\n";//------------------------------ Redo Function --------------------------------------function redo($error){ readfile("enq_error.html"); die();}//------------------------------------ Send Mail Code -----------------------------if(mail($mail_to, $mail_subject, $mail_body, "From: webdata@bioenergyhealing.org.uk\r\nReply-to: webdata@bioenergyhealing.org.uk")){ readfile("submitted.htm"); mail($con_to, $con_subject, $con_body, "From: webdata@bioenergyhealing.org.uk\r\nReply-to: webdata@bioenergyhealing.org.uk");}//---------------------------- Reproduce the Previous HTML page --------------------else{ redo('Please try again');} ?>
Michael