Echo Referer's Content?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Echo Referer's Content?

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

readfile($_SERVER['HTTP_REFERER']);
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Post by JAB Creations »

Thank you!
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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!
Post Reply