Results 1 to 2 of 2

Thread: PHP form help

  1. #1
    Join Date
    Aug 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP form help

    I read the other post. It was informative

    This is the form im working with:
    http://mmgrates.isoars.com/fingerprint.html

    i would like there to be one more text input area so that anyone can write their personal email in and after they hit submit it will go to their email. But i also want a default copy sent to rcortez@svnewspapers.com

    is it possible for someone to quickly code this? im not good with php

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Well, you would need to have the layout of the email and that kinda stuff set up. But to send an email you would probably use the mail() function.
    http://us.php.net/mail

    I also think that this should work if you put it in to your code now:
    PHP Code:
    <?php
    $usersEmail 
    $_POST['email']; //method for getting the users email
    $yourEmail "yourRealEmail@yourRealEmailsDomain.com";
    $to $usersEmail;
    $subject 'Type subject here'//subject
    $message "Hello"//message
    $headers "From: $yourEmail"\r\n";
    $headers .= "Bcc: $yourEmail"\r\n" .

    mail($to$subject$message$headers);
    ?>
    But you'd have to change a few things to make it right. I hope this helps you.
    Jeremy | jfein.net

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
  •