Jump to content

[SOLVED] header location urlencode


chaiwei

Recommended Posts

Hi all,

 

Please kindly look at the following statement.

 

header('Location: '.urlencode($PHP_SELF.'?'.$_SERVER['HTTP_REFERER']));

 

It doesn't work properly. It show me the page 404 not found.

 

I type 192.168.2.3/chaiwei/main.php

 

it jump to

http://192.168.2.3/chaiwei/%3F

 

I want it jump to login page

 

Thanks in advance.

 

 

Link to comment
https://forums.phpfreaks.com/topic/134009-solved-header-location-urlencode/
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.