Re: Passing variables to page via POST - How?

From: Date: Fri, 19 Jul 2002 04:49:04 +0000
Subject: Re: Passing variables to page via POST - How?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108430@lists.php.net to get a copy of this message
Hey, I'm new, but I have some advice. Do you have to POST? becuase you can use sessions, and PHP has a bunch os session functions. Secondly, POST will not attach any variables to the URL, this is done by GET. To access the POST variables traverse through the $HTTP_POST_VARS (or $_POST array, i think) to retrieve your values. But if you can try using sessions, more secure, and as easy to use as POST, just traverse $HTTP_SESSION_VARS. "Monty" <monty3@hotmail.com> wrote in message news:B95D0D40.11938%monty3@hotmail.com... > This is probably more of an HTML question... Is there a way to pass > variables to another page via POST instead of via the URL? I need to pass > several variables, one that is an array and another that is a fairly long > string, so, I can't really do this via the URL. > > My initial idea was to just create a very simple form that only has hidden > fields with the data I want to pass, along with an image Submit button that > would call the page and pass the hidden field variables. > > Is that the only/best way to accomplish this? > > Thanks. > > Monty > >

« previous php.general (#108430) next »