This topic is locked

Printer friendly

12/3/2007 7:23:31 PM
PHPRunner General questions
D
Default author

Hi,

I am forced totally rewrite printer friendly page, to display master-detail in one table (something like invoice). I have examined xxx_print.php files, but with little success - alot of variables, includes etc. Could anybody tell how to decide within print page which records ot the table are selected? may be some session variable?

J
Jane 12/4/2007

Hi,
selected records are in the $_REQUEST["selection"] variable.

D
Default author 12/5/2007

Jane,

thanks for answer.

I would like to clarify one point - as it seems to me $_REQUEST["selection"] variable must be an array (because multiple selection option). Is it similar to $values array, which is used in events processing, or, it contains only one (primary key) field?

Alexey admin 12/5/2007

Hi,
use this statement to print and inspect $_REQUEST["selection"] variable contents.

print_r($_REQUEST["selection"]);