Howdy,
The users on the desired page, they click send to a friend which opens a new page with a form on - this form needs to record their mail details etc but also forward on a link of the desired page.
So - HTML page with send to friend link (this is the url we want too)
Opens a second page with the input form
On click of submit, sends info plus url and redirects to a sent page.
At the mo I've got:
<?
// Configuration of recipient and subject.
$recipient = "$friendsemail ";
$subject = "mySubject";
$mailheaders = "From: myEmail <$youremail>\n";
$mailheaders .= "Reply-To: <$youremail>";
$msg = "$yourname wrote:\n";
$msg .= "$yourmessage\n";
$msg .= "\n";
mail($recipient, $subject, $msg, $mailheaders) or die ("Couldn't send mail!");
?>
I'm sure I'll need to pass the desired url as a variable to the form page then on to the php script.
I'm relatively new to all this so any help anyone can give would be greatly appreciated!
Many, many thanks!
Matt Faulkner