Results 1 to 5 of 5

Thread: PHP Mail Form

  1. #1
    Join Date
    Apr 2005
    Posts
    46,704

    Default PHP Mail Form

    PHP Mail Form

    Code:
    <html>
    <body>
    
    <?php
    if (isset($_REQUEST['email']))
    
      {
    
      $email = $_REQUEST['email'] ;
      $subject = $_REQUEST['subject'] ;
      $message = $_REQUEST['message'] ;
      mail("", $subject,
      $message, "From:" . $email);
      
      }
    else
    
      {
      echo "<form method='post' action=''>
      Email: <input name='email' type='text' /><br />
      Subject: <input name='subject' type='text' /><br />
      Message:<br />
      <textarea name='message' rows='15' cols='40'>
      </textarea><br />
      <input type='submit' />
      </form>";
      }
    ?>
    
    </body>
    </html>

  2. #2
    Join Date
    Jan 2012
    Posts
    5

    Default

    thx for this help me verry much :)

  3. #3
    Join Date
    Mar 2012
    Posts
    6

    Default

    Thankyou ^_^

  4. #4
    Join Date
    Aug 2012
    Posts
    5

    Default

    Thanks a lot guys !

  5. #5
    Join Date
    Nov 2012
    Posts
    5

    Default

    Combining HTML5 & PHP for a functional emailing form
    Combining HTML5 & PHP for a functional emailing form

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •