I'm getting SOOOO frustrated, been siting with this challenge now for 2 solid days, and I'm not really winning.
I can't even print any of the values on the 2nd page.
Don't sure if I should start over, and use SESSIONS to catch the details as I select them. Not sure. Any suggestions?
This is now my 1st page which select values from DB:
<?php
$conn = mysql_connect( "localhost", "root", "password" );
$sql = mysql_select_db( "snow" );
$rs = mysql_query("Select * from request order by qid DESC");
$rows = mysql_num_rows($rs);
echo ("<tr>");
echo ("<th align=\"center\" width='50%'>There are $rows records.</th>");
echo ("</tr>");
if(mysql_num_rows($rs))
{
while ($row = mysql_fetch_array($rs,MYSQL_ASSOC))
{
$qid = $row['qid'];
$incall =$row['incall'];
$name = $row['name'];
$surname = $row['surname'];
$email = $row['email'];
$tel = $row['tel'];
$TDevelop =$row['TDevelop'];
$TConf = $row['TConf'];
$TResort = $row['TResort'];
$SSkishop = $row['SSkishop'];
$SCorp = $row['SCorp'];
$SSlope = $row['SSlope'];
$Ttotal = $row['Ttotal'];
$SKids = $row['SKids'];
$kids5un = $row['kids5un'];
$kids5t12 = $row['kids5t12'];
$adults12up = $row['adults12up'];
$total = $row['total'];
$beginners = $row['beginners'];
$date = $row['date'];
$outcall = $row['outcall'];
$closed = $row['closed'];
$imediate = $row['imediate'];
$today = $row['today'];
$tomorow = $row['tomorow'];
echo ("<form action=\"callforw.php\" method=\"post\">");
echo ("<table align=\"center\" width='20%' border=1 bgcolor=\"#FFFFFF\">");
echo ("<tr>");
echo ("<th align=\"center\" width='50%'><font size=\"2\">Call ID:</font></th>");
echo ("</tr>");
echo ("<tr>");
echo ("<td align=\"center\">".$_POST['qid']."</td>");
echo ("</tr>");
echo ("</table>");
echo ("<table width='100%' border=1 bgcolor=\"#FFFFFF\">");
echo ("<tr>");
echo ("<th>Time of Request:</th>");
echo ("<td>$incall</td>");
echo ("</tr>");
echo ("<tr>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Name:</font></th>");
echo ("<td>$name</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Surname:</font></td>");
echo ("<td>$surname</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">E-Mail:</font></th>");
echo ("<td>$email</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Contact Number:</font></th>");
echo ("<td>$tel</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Date Interested:</font></th>");
echo ("<td>$date</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Convenient Callback Time:</font></th>");
echo ("<td>$outcall</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Within 10 Min:</font></th>");
echo ("<td>$imediate</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Today:</font></th>");
echo ("<td>$today</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Tomorrow:</font></th>");
echo ("<td>$tomorow</td>");
echo ("</tr>");
echo ("</table>");
echo ("<table align=\"center\" width='60%' border=1 bgcolor=\"#FFFFFF\">");
echo ("<tr>");
echo ("<th><font size=\"2\">Tiff Development:</font></th>");
echo ("<td>$TDevelop</td>");
echo ("<th><font size=\"2\">Scape Ski Shop:</font></th>");
echo ("<td>$SSkishop</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Tiff Conference:</font></th>");
echo ("<td>$TConf</td>");
echo ("<th><font size=\"2\">Scape Corporate:</font></th>");
echo ("<td>$SCorp</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Tiff Resort:</font></th>");
echo ("<td>$TResort</td>");
echo ("<th><font size=\"2\">Scape Indoor Slope:</font></th>");
echo ("<td>$SSlope</td>");
echo ("</tr>");
echo ("</table>");
echo ("<table align=\"center\" width='50%' border=1 bgcolor=\"#FFFFFF\">");
echo ("<tr>");
echo ("<th><font size=\"2\">Kids under 5:</font></th>");
echo ("<td>$kids5un</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Kids from 5-12:</font></th>");
echo ("<td>$kids5t12</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Adults 12+:</font></th>");
echo ("<td>$adults12up</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Amount People:</font></th>");
echo ("<td>$total</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th><font size=\"2\">Beginners:</font></th>");
echo ("<td>$beginners</td>");
echo ("</tr>");
echo ("<tr>");
echo ("<th align=\"center\"><input align=\"center\" type=\"textarea\" name=\"forwmail\" value=\"\">Mail To</th>");
echo ("</tr>");
echo ("<tr>");
echo ("<td align=\"center\"><input type=\"submit\" name=\"mailto\" value=\"Forward\"></td>");
echo ("</tr>");
echo ("</table>");
echo ("<br>");
}
}
echo ("</form>");
?>
From here it goes to my forwmail.php page, where my mail() function is suppose to send the entry via e-mail to selected address. But like I said, I don't even get my values here, never mind mailing it.
Peace