Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Badwolf

  • Rank
  1. (php is a weakness) Here is the HTML portion for the form: <form action="send_form_email.php" id="contacts-form" method="post"> <fieldset> <div class="grid3 first"> <label>Name:<br /> <input type="text" name="name" value="" id="name" /> </label> <label>E-mail:<br /> <input type="email" value="" name ="email" id="email" /> </label> </div> <div class="grid3">Message:<br /> <textarea name="comment" cols="45" rows="6" id="comment" class="bodytext"></textarea> <div class="alignleft"> <a href="#" class="alt" onClick="document.getElementById('contacts-form').reset()">Clear</a> <a href="#" class="alt" onClick="document.getElementById('contacts-form').submit()">Submit</a> </div> </div> </fieldset> </form> Here is the PHP portion <?php $ToEmail = 'abcdefg12345@gmail.com'; $EmailSubject = 'Site contact form'; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "Name: ".$_POST["name"].""; $MESSAGE_BODY .= "Email: ".$_POST["email"].""; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"]).""; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); ?> <3
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.