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
JAB Creations
DevNet Resident
Posts: 2341 Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:
Post
by JAB Creations » Sun Mar 04, 2007 1:22 pm
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
How can I echo the contents of page3.html instead of it's url?
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Sun Mar 04, 2007 1:29 pm
Code: Select all
readfile($_SERVER['HTTP_REFERER']);
JAB Creations
DevNet Resident
Posts: 2341 Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:
Post
by JAB Creations » Sun Mar 04, 2007 1:44 pm
Thank you!
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Sun Mar 04, 2007 3:47 pm
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!