SHARE
TWEET

Untitled

a guest Aug 13th, 2017 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3.     <title>Contact Page</title>
  4. </head>
  5. <body>
  6.     <?php
  7.     if ($submit){
  8.       mail( "address@example.com", "Subject Here", "The following message was sent using your contact form.\n".$message."\n", "From: $email" );
  9.    
  10.       echo "Thank you for contacting me, ....";
  11.       }
  12.     else
  13.       {
  14.       echo "<form method='post' action='contact.php'>
  15.         <br><br>
  16.         Your Email Address: <input name='email' type='text' size='34'><br><br>
  17.         <textarea name='message' rows='20' cols='50'></textarea><br>
  18.         <input name='submit' type='submit' value='Send'>
  19.       </form>";
  20.       }
  21.     ?>
  22. </body>
  23. </html>
RAW Paste Data
Top