Forum Moderators: coopster
i can't figure out how to incorperate the $_SERVER['REQUEST_URI'] command with it.
here's what i have so far.
(this is only snippets.. i won't bother posting the entire script unless someone requests it)
// Retrieve all the info
$pageurl = $_POST["pageurl"];
$in_name = $_POST["name"];
$in_email = $_POST["email"];
$in_count = $_POST["count"];
$in_message = $_POST["message"];
// Form the mail here
$mail_from = "$in_email";
$mail_replyto = "$in_email";
$mail_bcc = $bcc;
$mail_headers = "From: $in_name <$mail_from>\r\n";
$mail_headers .= "Reply-to: $mail_replyto\r\n";
$mail_headers .= "Bcc: $mail_bcc";
$mail_subject = "$subject";
$mail_message = "Your friend $in_name thought you would be interested in checking out this site:";
$mail_message .= "Click below to be taken to the link:\n";
$mail_message .= "URL:\n";
$mail_message .= "$pageurl \n\n";
$mail_message .= "$in_message";
.... for $pageurl i want to put [mysite.com$_SERVER['REQUEST_URI']...] but i keep encountering errors, no matter how many different ways i try it
$pageurl='http://www.mysite.com' . $_SERVER['REQUEST_URI'];
coopster, thanks! that did the trick.
now i am trying to post the item name from the database, which is: $product_info['products_name'];
i can't seem to get this into a variable like $in_name = $_POST["name"]; so i can post it anywhere i need it in the form.