<?php
session_start();
require 'include.php';
$qrr = "select * from script_stat where email = '$email' and processed = 'N' and scriptstat = 'Y'";
$qr2 = mysql_query($qrr) or die(mysql_error());
$qu = "select * from users where email= '$email'";
$q1 = mysql_query($qu) or die(mysql_error());
$row1 = mysql_fetch_array($q1);
?>
<html>
<title>
Requests for <?php echo $row1['fname'] .' '.$row1['lname']; ?>
</title>
<body>
<table border = 2>
<tr>
<td>Rx Number</td>
<td>Patient First Name</td>
<td>Processed</td>
</tr>
<?php
while($row3 = mysql_fetch_array($qr2)){
echo '<tr><td><font size = 4>'.$row3['scriptnum'].'</td><td> '.$row1['fname'].'</font></td><td> <input type = checkbox value = Y name = checked onclick="document.location.href=[URL unfurl="true"]https://shopfagen.com/rxrefill/adm1/request.php?process='.$checked.'&scriptnum='.$row3[/URL]['scriptnum'].'"><br>';
}
?>
</table>
To go back <a href = main.php>Click Here</a>
</html>