Trouble passing variables with "Lightbox Gone Wild"

I found a slightly modified version of “Lightbox Gone Wild”. I’ve successfully used it to produce a lightbox where a person can enter their email address. When they click submit, we email their password and give them a message stating so. They simply click the close button when they are done. So far so good.

I am trying to implement this same concept in creating a contact form. Users to my site can find other essential oil users. Right now it uses a browser popup window, but I’m trying to use a lightbox instead. When you click a person’s name, a lightbox appears, populated with the logged in user’s first name and email. There is a field to ask a question and then they click submit.

On the next page within the lightbox, I can’t seem to pull across any of the variables. All I can get are items currently stored in the session. Because the uID is not being pulled across into the 2nd page, the SQL that needs it is failing. Can anyone help me figure out what I’m missing? Here is the code on the second page of the lightbox in question:


/////////////////////////////////////////////////////////////////////////
// Code to send the actual email
/////////////////////////////////////////////////////////////////////////


if ($action== "sendEmail") {


$loginID			= $_SESSION['loginID'];
$loginFirst			= $_SESSION['loginFirst'];
$loginLast			= $_SESSION['loginLast'];
$colorBackground	        = $_SESSION['colorBackground'];

$uID 			= $_REQUEST['uID'];
$senderName 	= $_REQUEST['senderName'];
$senderEmail	= $_REQUEST['senderEmail'];
$receiverName 	= $_REQUEST['receiverName'];
$receiverEmail	= $_REQUEST['receiverEmail'];
$member		= $_REQUEST['member'];
$message		= $_REQUEST['message'];

$message = stripslashes($message);

print ("loginID-$loginID<br>");
print ("loginFirst-$loginFirst<br>");
print ("loginLast-$loginLast<br>");
print ("senderName-$senderName<br>");
print ("senderEmail-$senderEmail<br>");
print ("uID-$uID<br>");
print ("receiverName-$receiverName<br>");
print ("receiverEmail-$receiverEmail<br>");
print ("member-$member<p>");

$asked = "update users set contacted = contacted +1 where uID = $uID";
$result = mysql_query($asked) OR die("<b>A fatal MySQL error occured</b>.\
<br />Query: " . $asked . "<br />\
Error: (" . mysql_errno() . ") " . mysql_error()); 


$subject = "Essential oil contact request";
$text="Dear $receiverName,

We have a visitor who is trying to make contact with you.  $senderName, like all of our visitors, is never shown your direct email address.  This message is sent by an automated form.  However, if you choose to reply to this message, your address will no longer be secret.  $senderName may be new to essential oils, so consider this a wonderful sharing opportunity.

------------------------------------------------------------------
$message
------------------------------------------------------------------

";

$headers = "From: $senderName <$senderEmail>\\r\
";
$headers .= "Reply-To: $senderEmail\\r\
";
$headers .= "Return-Path: $senderEmail\\r\
";


if ($receiverEmail) {
mail($receiverEmail, $subject, $text, $headers);
}

?>


<html>
<head>
<title>Email Sent</title>

<link href="http://www.oil-testimonials.com/styleSheet.css" rel="stylesheet" type="text/css">

</head>

<body bgcolor="<?php echo $colorBackground; ?>">



<table border ="1" width="95%" cellpadding="2" align="center">
<tr>
<td valign="top">
<h2>Email Sent</h2>
We have just sent an email to <?php echo $receiverName; ?> and mentioned you would like to make contact.  Hopefully a reply will be coming soon.  <p>You may now close this window.<br><br>
</td>
</tr>

</table>

<?php

} // end if ($action== "sendEmail")

Hello? Anyone out there?