Hi Forum,
PHPRunner V5 Build 766
I have the following Event code at my_table | Printer-friendly page | Print page: Before display
global $conn;
$str = "select * from details_table where username='".$_SESSION["UserID"]."'";
$rs = db_query($str,$conn);
if($data = db_fetch_array($rs))
// check if user profile has been revoked (set to 1)
if ($data["revoked"]=="1") {
header("Location: revoked_list.php");
exit();
}
When the value revoked=0 and the user selects either "Print Selected" or "Printer-Freindly" button then the print results are displayed on a new page ..... this is perfectly fine!!!
Here's the problem
When the value revoked=1 and either print button is selected, I need a way to redirect to the revoked_list.php page without opening a new window.
Thanks in advance
Lisa