Page 1 of 1

How can I hide the URL in this example

Posted: Wed May 06, 2009 2:40 am
by taylormade
I'm trying to launch a PHP page (B) from another one (A)
This is the code I'm using now:
echo "<meta http-equiv=\"Refresh\" content=\"0; url=secure_01.php\">";
However, the URL ( secure_01.php ) shows up in the browser title bar.
This is not acceptable since this is a secure page and getting to it is the result of logging in on the previous page (A).
How can I code this so that the URL does not reveal the page name?

Re: How can I hide the URL in this example

Posted: Wed May 06, 2009 2:54 am
by Christopher
Put it in a frame/iframe.

Re: How can I hide the URL in this example

Posted: Wed May 06, 2009 3:16 am
by onion2k
Hiding things doesn't make them secure. It's trivially simple to find out the name of anything your browser is displaying.

Re: How can I hide the URL in this example

Posted: Wed May 06, 2009 5:25 am
by taylormade
arborint wrote:Put it in a frame/iframe.
do you think you could illustrate the code (php) that would do that.
I'm quite new to php.

Re: How can I hide the URL in this example

Posted: Wed May 06, 2009 9:34 am
by taylormade
true...and IFRAME is not the answer, since as stated, it is easy to see the target URL if you check the page source.
Need a better answer.?