Hi, I am using php to let people recommend my site to other people.
I'm using the following code:
<?php
$recipient = "<$sender_email>";
$subject = "$sender_name recommended the Mp3Players.co.uk web site";
$mailheaders = "From: web@mp3players.co.ukn";
$mailheaders .= "Reply-To: web@anon.com\n\n";
$msg = "Hi, $sender_name recommended \n";
mail($recipient, $subject, $msg, $mailheaders) or die ("Couldn't send mail!"
header("Location: emailed.htm"
?>
This gets it's variables from a form:
<form name="form1" action="email.php3" method="post" >
I would also like the same variables sent to another php script, that reports who has recommended the site to whom.
Is it possible to post the variables to two php files, or get the php file to send two emails, both with different content and recipients, but using the same variables?
Cheers,
Matt
I'm using the following code:
<?php
$recipient = "<$sender_email>";
$subject = "$sender_name recommended the Mp3Players.co.uk web site";
$mailheaders = "From: web@mp3players.co.ukn";
$mailheaders .= "Reply-To: web@anon.com\n\n";
$msg = "Hi, $sender_name recommended \n";
mail($recipient, $subject, $msg, $mailheaders) or die ("Couldn't send mail!"
header("Location: emailed.htm"
?>
This gets it's variables from a form:
<form name="form1" action="email.php3" method="post" >
I would also like the same variables sent to another php script, that reports who has recommended the site to whom.
Is it possible to post the variables to two php files, or get the php file to send two emails, both with different content and recipients, but using the same variables?
Cheers,
Matt