Jump to content

[SOLVED] PHP redirection


cordoprod

Recommended Posts

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

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.