problem:
calling PHP program:
javascript:popup('../print_pitem.php?id=<?=$id?>
called PHP program:
SELECT * FROM `file` WHERE file_id = $id
How do I reference/access the $id variable in the called program?
I presume that you want to access the data that will be sent by the javascript:popup('../print_pitem.php?id=<?=$id?> ... javascript code in print_pitem.php. If thats the case then ... you can simple get the value by using $_GET['id'] or $HTTP_GET_VARS['id'].
I hope this helps.....
Thank you very much. That worked.