Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting with hidden variables in URL

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hello!

I always use this function to go to another page after
a script is processed:

$url = "a_page.php?value_1=yes&value_2=$login";
header("Location: $url");
exit();

But doing it this way will show variables in the URL bar of the browser:

My question is: How can I still use variables and have an url such like:

Thanks a LOT!
 
you can make a frameset like in index.html or something like that
<FRAMEset rows=&quot;1,*&quot; border=0 scrolling=no>
<frame src=&quot;dummy.html &quot;name=&quot;dummy&quot; scrolling=no>
<frame src=&quot;my_page.php&quot; name=&quot;main&quot; scrolling=no>
</FRAMESET>


if you have links you can add the
<a href=&quot;my_page.php?id=blabla&quot; target=&quot;_self&quot; >link title</a>

this should do the trick I think. depending on your hosting you would only see your main domain name. for visitors it is not possible then to bookmark a sublink very easily. depending on your website you must consider if it is wise not to allow that.
 
Hmmmm...

I was thinking that there was some PHP function that would
allow to emulate an HTTP POST (without any form of course).

Also, I've banned frames from my life because it's no good
for the karma.

I should perhaps have a look to the .conf file of Apache.

Thanks anyway.
Have a good day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top