Hello;
I am using php for passwording my pdf files.But if you write the exact location of pdf, it is opened(naturally) without questioning password. Therefore I use redirecting pdf file from server to the php page.And it works if php opens yhe file with:
?><BODY onLoad="location.replace('../directory/test.pdf')"></BODY><?
However, I want to use in php POST method,namely taken the information from address bar.In order to manage this, I am adviced in this forum:
header("Location: ['HTTP_HOST']."/".$_GET['name']);
It works in php.But this time redirecting does not works.
As a result,is there a way to use post(or get) method in order to create only one php page for hundreds pdf's AND to use redirecting?
I am using php for passwording my pdf files.But if you write the exact location of pdf, it is opened(naturally) without questioning password. Therefore I use redirecting pdf file from server to the php page.And it works if php opens yhe file with:
?><BODY onLoad="location.replace('../directory/test.pdf')"></BODY><?
However, I want to use in php POST method,namely taken the information from address bar.In order to manage this, I am adviced in this forum:
header("Location: ['HTTP_HOST']."/".$_GET['name']);
It works in php.But this time redirecting does not works.
As a result,is there a way to use post(or get) method in order to create only one php page for hundreds pdf's AND to use redirecting?