View Single Post
Old 01-27-2006, 02:04 AM   #1 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
A request from IRC regarding HTTP_REFERER

As you all know I've been away for quite some time now, but good news, starting from february 16. I'm getting an internet connection again.

Anyway Just noticed one request from #codenewbie@freenode.net since apparently my user is the only one idling there, I might aswell bring it here:
Quote:
< lobas> redhead
< lobas> <html>
< lobas> <head>
< lobas> </HEAD>
< lobas> <meta http-equiv="refresh" content="0; url=<?php $HTTP_REFERER?>">
< lobas> </body>
< lobas> </html>
< lobas> why dont that work
And the answer is, you have to somehow serve the contense which is hold in HTTP_REFERER to the browser, usualy this is either done by using print() or by using echo, so in your case it would be:
HTML Code:
<html> <head> <meta http-equiv="refresh" content="0; url=<?php echo $HTTP_REFERER; ?>"> </HEAD> <body> </body> </html>
Thanks for listening all, and please shower this poor lobas with all the solutions you can come up with
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001

Last edited by redhead; 01-27-2006 at 03:54 AM.
redhead is offline   Reply With Quote