RE: [PHP] Re: Passing Variables
| From: | George Pitcher | Date: | Sat, 21 Jun 2003 14:14:42 +0000 |
| Subject: | RE: [PHP] Re: Passing Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152391@lists.php.net to get a copy of this message | ||
Nabil,
That is one way but it means that Jay would have to use a form and not a
link.
You could set a cookie. That would work, but it relies on the user allowing
cookies.
George
> -----Original Message-----
> From: nabil [mailto:nabil.attar@aws-syria.com]
> Sent: 21 June 2003 2:58 pm
> To: php-general@lists.php.net
> Subject: [PHP] Re: Passing Variables
>
>
> use hidden field (pure html) and then u have it as $yourhiddenfield on the
> next page even u have the register global off..
>
> Nabil
>
>
> "Jay Fitzgerald" <jayfitz@bayou.com> wrote in message
> news:5.2.0.9.2.20030621084841.00b99fd0@mail.bayou.com...
> > I have been searching for an answer to this for a couple of
> hours now and
> > cant find anything. I believe that there is a secure way of
> doing this but
> > I think my brain is having a momentary lapse...
> >
> > I have these variables:
> >
> > $eventid = "1";
> > $age = "15";
> >
> > Is there a way to pass these variables to the next page so I
> can continue
> > using them without doing something like this:
> >
> > <A HREF="test.php?eventid=1&age=15">
> >
> > I would rather not have the variables be seen or known to the
> end user for
> > security reasons because they could change them in the URL. I
> know it has
> > something to do with $_GET and $_POST because I do have register_globals
> > set to OFF in my php file and I do not want to turn them on....
> >
> > TIA
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>