justAnoob Posted June 9, 2009 Share Posted June 9, 2009 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(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/161594-solved-big-thank-you-to-ken2k7/ Share on other sites More sharing options...
ted_chou12 Posted June 9, 2009 Share Posted June 9, 2009 everything looks good except just put session_start(); on top of both of the codes. Ted Quote Link to comment https://forums.phpfreaks.com/topic/161594-solved-big-thank-you-to-ken2k7/#findComment-852715 Share on other sites More sharing options...
.josh Posted June 9, 2009 Share Posted June 9, 2009 while seeing credit given to people who help gives me warm and fuzzy feelings inside, please try to make subject lines descriptive of the problem at hand. Quote Link to comment https://forums.phpfreaks.com/topic/161594-solved-big-thank-you-to-ken2k7/#findComment-852718 Share on other sites More sharing options...
justAnoob Posted June 10, 2009 Author Share Posted June 10, 2009 got session start on both of them,, just posting what worked. Quote Link to comment https://forums.phpfreaks.com/topic/161594-solved-big-thank-you-to-ken2k7/#findComment-852783 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.