Problems width userviewer ch.12
I'm one of the lot of readers who have problems width the example in PHP4: userviewer.php.
I have tried all the changes I could find ind this forum, but the rësult is: When I select: View Record there just open a copy of the same window.
My changes is:
New scriptcode:
NEW_WIN = window.open ("", "RecordViewer","toolbar=no,width=<?php echo $new_win_width ?>,height=<?php echo $new_win_height?>,directories=no,status=no,scrollb ars=yes,resize=no,menubar=no");
Changes in the the link in the userviewer.php:
<A HREF=\"javascript:window.open('$PHP_SELF?action=vi ew_record&userid=$userid');\">View Record</A></TD>\n";
In the botton of the code:
Added:
if (!isset($_GET['action']))
$action=$_Get['action'];
else $action='list_records';
if (!isset($_GET['userid']))
$userid=$_GET['userid'];
else $userid=null;
---but nothing seems to help.
Can anybody help us?
|