Results 1 to 2 of 2

Thread: help me.. please... thanks

  1. #1
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation help me.. please... thanks

    i m a new user about php. can someone please help me...
    i want a coding about php can send email by click the send for example:

    my name :
    my email :
    my friends name:
    my friends email:

    button="send"

    i only need to fill in the name , email, my fren name, and my friend email. then i click the button send, the mail will directly send to my frens email account.

    i already fix the content. and all the contents are same.
    please help me....
    thank you..
    it is urgent...

  2. #2
    Join Date
    Dec 2005
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
    <html>
    <body>
    <?php 
    $myname = $_POST["myname"];
    $myemail = $_POST["myemail"];
    $friendsname = $_POST["friendsname"];
    $friendsemail = $_POST["friendsemail"];
    mail($myemail, 'My Friends email', 'my name : $myname\n
    my email : $myemail\n
    my friends name: $friendsname\n
    my friends email: $friendsemail\n', '
    From: $myemail\n
    To: $friendsemail'); 
    ?>
    </body>
    </html>
    That should work.
    Last edited by Iiro; 12-22-2005 at 03:05 PM.

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
  •