Can anybody help me for the code below ?

Can anybody help me for the code below ?

I have html codes for Mailform as below. I want to make php code to support this html form. I have posted the php form but it is not proper. Can anybody help me ?

Property name:
Number of rooms:
Star rating:
Address
Phone number:
Fax number:
Email address:
Website:

<?php // ------------- CONFIGURABLE SECTION ------------------------ // $mailto - set to the email address you want the form // sent to, eg //$mailto = "[email protected]" ; $mailto = '[email protected]' ; // $subject - set to the Subject line of the email, eg //$subject = "Feedback Form" ; $subject = "Feedback Form" ; // the pages to be displayed, eg //$formurl = "http://www.example.com/feedback.html" ; //$errorurl = "http://www.example.com/error.html" ; //$thankyouurl = "http://www.example.com/thankyou.html" ; $formurl = "http://your-feed-back.htm" ; $errorurl = "http://error.htm" ; $thankyouurl = "http://thank-you.htm" ; $uself = 1; // -------------------- END OF CONFIGURABLE SECTION --------------- $headersep = (!isset( $uself ) || ($uself == 0)) ? "rn" : "n" ; $name = $_POST['name'] ; $email = $_POST['email'] ; $comments = $_POST['comments'] ; $http_referrer = getenv( "HTTP_REFERER" ); if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; } if (empty($name) || empty($email) || empty($comments)) { header( "Location: $errorurl" ); exit ; } if ( ereg( "[rn]", $name ) || ereg( "[rn]", $email ) ) { header( "Location: $errorurl" ); exit ; } if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); } $messageproper = "This message was sent from:n" . "$http_referrern" . "------------------------------------------------------------n" . "Name of sender: $namen" . "Email of sender: $emailn" . "------------------------- COMMENTS -------------------------nn" . $comments . "nn------------------------------------------------------------n" ; mail($mailto, $subject, $messageproper, "From: "$name" <$email>" . $headersep . "Reply-To: "$name" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" ); header( "Location: $thankyouurl" ); exit ; ?>

What are the issues you run into? Have you tried debugging? Have you tried searching on web search engines to see if there was a solution to your issue(s)? Did you contact the author of this script for support?

We don’t provide support on third-party scripts (such as this one) and what also bothers me, is this:

2. You may NOT distribute or republish this script, whether modified or not. The script can only be distributed by the author, Christopher Heng.

And to be quite honest with you, you ARE posting the script here …

Sponsor our Newsletter | Privacy Policy | Terms of Service