This topic is locked

Print Button - help needed

4/7/2009 2:48:41 AM
PHPRunner General questions
L
Lisa2006 author

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

J
Jane 4/7/2009

Hi,
this code doesn't create new window.

Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.