Jump to content

[SOLVED] big thank you to ken2k7


justAnoob

Recommended Posts

hope you don't mind me using your name for the subject,,,,  But,, thanks for not just giving me the answer to a problem that I was having... I did a lot of trial and error and finally found something that works... It feels so much better to have figured it out on my own......Everything works great so far(IE and FireFox).. Everything look ok? It retrieves whatever url is in the box on my browser,,, so then I can use it for a header statement...

 

<?php
$_SESSION['url'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."?".$_SERVER['QUERY_STRING'];
?>

 

<?php
$url = $_SESSION['url'];
header("location:" . $url);
exit();
?>

Link to comment
https://forums.phpfreaks.com/topic/161594-solved-big-thank-you-to-ken2k7/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.