Get-Post in <A HREF>....

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2003
Bob Bedford
 
Posts: n/a
Default Get-Post in <A HREF>....

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 ?


Reply With Quote
  #2 (permalink)  
Old 12-10-2003
Savut
 
Posts: n/a
Default Re: Get-Post in <A HREF>....

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 ?
>
>



Reply With Quote
  #3 (permalink)  
Old 12-16-2003
 
Posts: n/a
Default Re: Get-Post in <A HREF>....


"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



Reply With Quote
  #4 (permalink)  
Old 12-16-2003
Christian Fersch
 
Posts: n/a
Default Re: Get-Post in <A HREF>....

> <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/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0