This is a discussion on Get-Post in <A HREF>.... within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I've a page with a link like this: <a href="Login.php?LogType=SearchProfile">Profils ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I've a page with a link like this:
<a href="Login.php?LogType=SearchProfile">Profils de recherche</a> <a href="Login.php?LogType=ResellerProfile">Annonces</a> I'd like to avoid passing those variables in the URL. How can I avoid this ? I've also a lot of redirect like: header("Location: EditUser.php?UserID=".echo($id)); but none should show any information on the URL. How to avoid this ? |
|
|||
|
You can't do this, ou have to post using a form if you have to see the page after, but if you dont need to load the page, you can
use fsockopen(); then pass them via the socket. Savut "Bob Bedford" <bedford1@YouKnowWhatToDohotmail.com> wrote in message news:3fd749bc$0$792$5402220f@news.sunrise.ch... > I've a page with a link like this: > > <a href="Login.php?LogType=SearchProfile">Profils de recherche</a> > <a href="Login.php?LogType=ResellerProfile">Annonces</a> > > I'd like to avoid passing those variables in the URL. How can I avoid this ? > > I've also a lot of redirect like: > header("Location: EditUser.php?UserID=".echo($id)); > > but none should show any information on the URL. > > How to avoid this ? > > |
|
|||
|
"Bob Bedford" <bedford1@YouKnowWhatToDohotmail.com> wrote in message news:3fd749bc$0$792$5402220f@news.sunrise.ch... > I've a page with a link like this: > > <a href="Login.php?LogType=SearchProfile">Profils de recherche</a> > <a href="Login.php?LogType=ResellerProfile">Annonces</a> > > I'd like to avoid passing those variables in the URL. How can I avoid this ? > > I've also a lot of redirect like: > header("Location: EditUser.php?UserID=".echo($id)); > > but none should show any information on the URL. > > How to avoid this ? > > Build a form on your page. Then submit it with a button or image (<input type="image".... > ) replacing your href. Your variables can be hidden text fields & you send them as a POST |
|
|||
|
> <a href="Login.php?LogType=SearchProfile">Profils de recherche</a>
> <a href="Login.php?LogType=ResellerProfile">Annonces</a> > > I'd like to avoid passing those variables in the URL. How can I avoid this ? <form name="sPform" action="Login.php" method="POST"> <inupt type="hidden" name="LogType" value="SearchProfile"> <a href="Login.php?LogType=SearchProfile" onclick="sPform.submit(); return false;">Profils de recherche</a> </form> You can also change the href to anything you like, but I would suggest you leave it this way - for people who have diabled Javascript. > I've also a lot of redirect like: > header("Location: EditUser.php?UserID=".echo($id)); > > but none should show any information on the URL. > > How to avoid this ? use Sessions. If your only problem is, that you don't want the data to be shown in the adress-bar, you can just use Frames. -- mfg Christian (Chronial "at" web.de) -- Composed with Newz Crawler 1.5 http://www.newzcrawler.com/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|