Re: Re: [PHP] Passing a variable invisibly via a href?
| From: | Adam Voigt | Date: | Tue, 02 Apr 2002 15:12:36 +0000 |
| Subject: | Re: Re: [PHP] Passing a variable invisibly via a href? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91150@lists.php.net to get a copy of this message | ||
You could actually have javascript auto-submit the form if you didn't want the button
like:
<script language="javascript">
document.form1.submit();
</script>
Adam Voigt
adam.voigt@cryptocomm.com
On Tue, 2 Apr 2002 09:08:18 -0600, Tyler Longren <tyler@captainjack.com> wrote:
> You could use a form and have a hidden vield that contains a value. The
> user would have to click the submit button for the variable/value to carry
> over though.
>
> Tyler Longren
> Captain Jack Communications
> tyler@captainjack.com
> www.captainjack.com
>
> ----- Original Message -----
> From: "Daniel Alsén" <d@mindbash.com>
> To: "PHP List" <php-general@lists.php.net>
> Sent: Tuesday, April 02, 2002 9:02 AM
> Subject: [PHP] Passing a variable invisibly via a href?
>
>
> > Hi,
> >
> > i need to pass a variable by letting the user click on a link. Right now i
> > do it like: page.php?variable=value
> >
> > However, i don´t want the variable, and it´s value to appear in the adress
> > bar of the browser. And i don´t want people to be able to pass the same
> > variable by reloading the destination page.
> >
> > Any pointers on how i can do this?
> >
> > Regards
> > # Daniel Alsén | www.mindbash.com #
> > # d@mindbash.com | +46 705 38 10 30 #
> > # ICQ: 63006462 | +46 8 694 82 22 #
> > # PGP: http://www.mindbash.com/pgp/ #
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>