Re: Passing vars...

From: Date: Sat, 10 Nov 2001 14:55:20 +0000
Subject: Re: Passing vars...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74099@lists.php.net to get a copy of this message
You must use session to maintain the continuity. Using header('Location ...'); means that you redirected the client browser to another page via HTTP. It is a stateless protocol ,and btw, you can redirect the client to a totally different host as well using HTTP headers. http://www.php.net/manual/en/ref.session.php ----- Original Message ----- From: "Ashley M. Kirchner" <ashley@pcraft.com> To: "PHP-General List" <php-general@lists.php.net> Sent: Saturday, November 10, 2001 9:30 AM Subject: [PHP] Passing vars... > > Small problem... I used to have a single file that included others > based on some variables set. However, I've decided instead of including > a different file, I would set a location header and redirect the browser > to the (once included) file instead. Problem is, now my variables > aren't being passed from one page to the other now. > > My index.php file sets the following in a form: > > // variables passed > // $email[to] -> who the mail is send to > // $email[from] -> from who the mail came it > // $name[to] -> the name of the person who will get the mail > // $name[from] -> the name of the person who send the mail > // $picture -> the full picture-url > // $comment -> comment > // $session[ID] -> a simple sessionID > // $album -> album in catalog > // $startitem -> page (item) in album > > ...and I need those variables passed on to the file to which I'm > redirecting to. Any ideas anyone? > > -- > H | "Life is the art of drawing without an eraser." - John Gardner > +-------------------------------------------------------------------- > Ashley M. Kirchner <mailto:ashley@pcraft.com> . > 303.442.6410 x130 > Director of Internet Operations / SysAdmin . 800.441.3873 x130 > Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave, #6 > http://www.pcraft.com ..... . . . Boulder, CO > 80303, U.S.A. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#74099) next »