Would appreciate some help debugging this code.
I'm trying to add the catagory number $catnum to the end of a URL in this tell-a-friend emailer.
It echos ok to the screen but does not get sent in the $email_message
<?
include 'tellafriend/config.php';
$catnum = $_GET["cat"];
echo $catnum; //check to see if cat is passing
if ($Submit)
{
$todayis = date("l, F j, Y, g:i a");
$subject = "Website recommendation by $visitor_name";
$email_message = "$message1
Website: $address?cid=$catnum
----------------------------------------
This email was sent by $visitor_name ($visitor_email)
";
$from = "From: $visitor_name<$visitor_email>";
mail ($sendto,$subject,$email_message,$from);
$status = "sent";
}
?>