cordoprod Posted May 25, 2008 Share Posted May 25, 2008 Hi. I want to redirect to a page.. But, i just want to refresh the page. Like this: $location = $_SERVER['PHP_SELF']; header("Location: $location"); But i have $_GET variables. Let's say the page is like this: user.php?nick=cordoprod How can i refresh the page and also keep the nick? Link to comment https://forums.phpfreaks.com/topic/107182-solved-php-redirection/ Share on other sites More sharing options...
pocobueno1388 Posted May 25, 2008 Share Posted May 25, 2008 $location = $_SERVER['REQUEST_URI']; header("Location: $location"); Link to comment https://forums.phpfreaks.com/topic/107182-solved-php-redirection/#findComment-549517 Share on other sites More sharing options...
cordoprod Posted May 25, 2008 Author Share Posted May 25, 2008 Thanks Link to comment https://forums.phpfreaks.com/topic/107182-solved-php-redirection/#findComment-549519 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.