By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,967 Members | 1,710 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,967 IT Pros & Developers. It's quick & easy.

using the header funtion to redirect to the same page

P: 92
is it possible to use the header function together with the $_SESSION['PHP_SELF'] variable?

Something like:
[PHP]header("Location: $_SESSION['PHP_SELF']");[/PHP]

Or is there even any other way to do so?

I really need help. I'm working on something really important.

Thanks in advance.
Dec 28 '07 #1
Share this Question
Share on Google+
2 Replies


ak1dnar
Expert 100+
P: 1,584
Expand|Select|Wrap|Line Numbers
  1. header('Location:'.$PHP_SELF.'');
  2.  
Dec 28 '07 #2

P: 1
Here is detailed information on how to redirect in PHP:

"http://webtricksandtreats.com/php-page-redirect/
Nov 7 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.