PDA

View Full Version : help me.. please... thanks



ccs_1981
12-20-2005, 12:28 AM
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... :eek:

Iiro
12-21-2005, 12:22 PM
<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.