Hi,
my goal is to show pdf documents after controlling password. I use classical form for u/p,and want to take the nema of the pdf, which should open, from address bar,in order net to create multiple phps.
the problem with opening pdf: I was useing:
?>
<BODY onLoad="location.replace('../directory/example.pdf')"></BODY>
<?
It works, but now I use:
$variable=$_GET['name'];
?>
<BODY onLoad="location.replace($variable)"></BODY>
<?
It doesn't work. comes an error page.the error is undefined variable: $variable. However when I echo $variable, the right directory name comes,namely GET works properly.
Please help
my goal is to show pdf documents after controlling password. I use classical form for u/p,and want to take the nema of the pdf, which should open, from address bar,in order net to create multiple phps.
the problem with opening pdf: I was useing:
?>
<BODY onLoad="location.replace('../directory/example.pdf')"></BODY>
<?
It works, but now I use:
$variable=$_GET['name'];
?>
<BODY onLoad="location.replace($variable)"></BODY>
<?
It doesn't work. comes an error page.the error is undefined variable: $variable. However when I echo $variable, the right directory name comes,namely GET works properly.
Please help