No, I'm not using any scripting.
Everything is in php.
I have a page that selects values from the DB, and then 1 selected value goes to my forward page, but doesn't in IE.
viewcalls.php
<?php
session_start();
?>
<form action="callforw.php" method="post">
<tr>
<th align="center"><input align="center" type="textarea" name="forwmail" value="">Mail to</th>
</tr>
<tr>
<td align="center"><input type="submit" name="mailto" value="Forward"></td>
<?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 ("<td align=\"right\" border=\"1\" width='50%'>There are $rows records.</td>");
echo ("</tr>");
if(mysql_num_rows($rs))
{
$i=0;
while ($row = mysql_fetch_array($rs))
{
$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'];
$forwmail= $row['forwmail'];
$i++;
$_SESSION['qid']=$qid;
$_SESSION['name']=$name;
$_SESSION['surname']=$surname;
$_SESSION['incall']=$incall;
$_SESSION['name']=$name;
$_SESSION['surname']=$surname;
$_SESSION['email']=$email;
$_SESSION['tel']= $tel;
$_SESSION['TDevelop']=$TDevelop;
$_SESSION['TConf']=$Tconf;
$_SESSION['TResort']=$TResort;
$_SESSION['SSkishop']=$SSkishop;
$_SESSION['SCorp']=$SCorp;
$_SESSION['SSlope']=$SSlope;
$_SESSION['Ttotal']=$Ttotal;
$_SESSION['SKids']=$SKids;
$_SESSION['kids5un']=$kids5un;
$_SESSION['kids5t12']=$kids5t12;
$_SESSION['adults12up']=$adults12up;
$_SESSION['total']=$total;
$_SESSION['beginners']=$beginners;
$_SESSION['date']=$date;
$_SESSION['outcall']=$outcall;
$_SESSION['closed']=$closed;
$_SESSION['imediate']=$imediate;
$_SESSION['today']=$today;
$_SESSION['tomorow']=$tomorow;
$_SESSION['forwmail']=$forwmail;
$forwmail = $_POST['forwmail'];
$i=0;
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\">$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("<td><input name=\"mailto[".$row['qid']."]\" type=\"checkbox\" value=\"".$_SESSION['qid']."\"></td>");
echo ("<tr>");
echo ("</table>");
echo ("<br>");
echo ("<br>");
echo ("<br>");
}
}
?>
</form>
this code forwards the selected value, and the "forwmail" address to next page where my mail() funtion, mails that entry to the "forwmail" address
callforw.php
<?php
session_start();
echo "<body bgcolor=lightcoral>";
if (isset($_POST['mailto']))
{
foreach($_POST['mailto'] as $value)
{
$to = "thys@fullhouse.co.za, $forwmail";
$subject = " Call Back Requested";
$message = " A Call back Request has been submitted at:\n";
$message .= " Time - $incall\n\n";
$message .= " Contact Detail:\n";
$message .= " Name - $name\n";
$message .= " Surname - $surname\n";
$message .= " Tel - $tel\n";
$message .= " E-mail - $email\n\n";
$message .= " Please contact them regarding their interests as below:\n";
$message .= " Tiff Development - $TDevelop\n";
$message .= " Tiff Conference - $TConf\n";
$message .= " Tiff Resort - $TResort\n";
$message .= " Snow Ski Shop - $SSkishop\n";
$message .= " Snow Corporate - $SCorp\n";
$message .= " Snow 40m Slope - $SSlope\n";
$message .= " Kids under 5 - $kids5un\n";
$message .= " Kids from 5 to 12 - $kids5t12\n";
$message .= " Adults above 12 - $adults12up\n";
$message .= " Beginners - $beginners\n";
$message .= " Date Interested - $date\n\n";
$message .= " Phone back in 10 min - $imediate\n";
$message .= " Phone back today - $today\n";
$message .= " Phone back tomorrow - $tomorow\n";
//$headers = ' From: thys@fullhouse.co.za'. "\r\n";
//$headers .= ' Reply-To: thys@fullhouse.co.za'. "\r\n";
// $headers .= ' X-Mailer: PHP/'. phpversion();
mail($to, $subject, $message);
echo "Mailed";
echo "<th><center>Welcome to the E-mail Forward page!</center></th>";
echo "OK that part works!<br>";
echo "Here is the QID ".$_SESSION['qid']."<br>";
echo "Here is the In call ".$_SESSION['incall']." ";
echo "Here is the First name ".$_SESSION['name']." <br>";
echo "Here is the Surname ".$_SESSION['surname']." <br>";
echo "Here is the Mailto" .$_SESSION['forwmail']." <br>";
echo "Next is a list of variables from the database!<br>";
echo "Blah blah blah.............";
echo $qid=$_SESSION['qid']."<br/>";
echo $incall=$_SESSION['incall']."<br/>";
echo $name=$_SESSION['name']."<br/>";
echo $surname=$_SESSION['surname']."<br/>";
echo $email=$_SESSION['email']."<br/>";
echo $tel=$_SESSION['tel']."<br/>";
echo $TDevelop=$_SESSION['TDevelop']."<br/>";
echo $TConf=$_SESSION['TConf']."<br/>";
echo $TResort=$_SESSION['TResort']."<br/>";
echo $SSkishop=$_SESSION['SSkishop']."<br/>";
echo $SCorp=$_SESSION['SCorp']."<br/>";
echo $SSlope=$_SESSION['SSlope']."<br />";
echo $Ttotal=$_SESSION['Ttotal']."<br />";
echo $SKids=$_SESSION['SKids']."<br />";
echo $kids5un=$_SESSION['kids5un']."<br />";
echo $kids5t12=$_SESSION['kids5t12']."<br />";
echo $adults12up=$_SESSION['adults12up']."<br />";
echo $total=$_SESSION['total']."<br />";
echo $beginners=$_SESSION['beginners']."<br />";
echo $date=$_SESSION['date']."<br />";
echo $outcall=$_SESSION['outcall']."<br />";
echo $closed=$_SESSION['closed']."<br />";
echo $imediate=$_SESSION['imediate']."<br />";
echo $today=$_SESSION['today']."<br />";
echo $tomorow=$_SESSION['tomorow']."<br />";
echo "new echo's!<br/>";
echo "$name<br/>";
echo "$surname<br/>";
echo "$forwmail<br/>";
echo $_POST['forwmail']."<br/>";
echo "Just Missed It!<br/>";
}
}
?>