Page 1 of 1

Echo Referer's Content?

Posted: Sun Mar 04, 2007 1:22 pm
by JAB Creations
Let's say I click from this page...

page3.html

Code: Select all

<h1>page three</h1>
<a href="phppage.php">php page</a>
and end up at...
phppage.php

Code: Select all

$_SERVER['HTTP_REFERER']
How can I echo the contents of page3.html instead of it's url?

Posted: Sun Mar 04, 2007 1:29 pm
by volka

Code: Select all

readfile($_SERVER['HTTP_REFERER']);

Posted: Sun Mar 04, 2007 1:44 pm
by JAB Creations
Thank you!

Posted: Sun Mar 04, 2007 3:47 pm
by Weirdan
volka wrote:

Code: Select all

readfile($_SERVER['HTTP_REFERER']);
volka, I can't believe you're proposing such a security treat!

JAB Creations, don't do that!