Re: Don't mean to be repetitive - Session Variables

From: Date: Mon, 11 Oct 2004 11:42:37 +0000
Subject: Re: Don't mean to be repetitive - Session Variables
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36726@lists.php.net to get a copy of this message
I think I found the correct way. By registering the session variable in the "next" page is how they take. Form Page 1 - collect user input Form Page 2 - $_SESSION['name'] = $POST['myane']; This sound right? Stuart --- Stuart Felenstein <stuart4m@yahoo.com> wrote: > > --- Jason Wong <php-db@gremlins.biz> wrote: > > > > The point is that you should understand *what* is > > going on with the examples. > > It's only when you've understood something that > you > > can then apply it to > > other situations. > > Your right and I agree with you. My perspective is > that the example(s) in the manual does not actually > address my particular situation. > In the manual example it's showing the session > variable > set to the value of count. If that value of count > changes, it's updated in the variable. > > > > The 'something' in your particular case is the > data > > from the form on Page1. Eg > $_SESSION['variable'] = $_POST['myforminput']; > > Yes, I've tried this, it didn't work so I'm doing > something wrong. > I'm not sure if > A) in the field area do i keep the value set as > "value="<?php echo $_SESSION['MyName']; ?>"> or is > that where my mistake is happening ? > > MyName is the value not the variable > so I think this is the right way to register the > variable: $_SESSION['name'] = $_POST['myname']; > > Maybe I leave the value blank and rely on the field > name ? > > Stuart > > > > -- > > Jason Wong -> Gremlins Associates -> > > www.gremlins.biz > > Open Source Software Systems Integrators > > * Web Design & Hosting * Internet & Intranet > > Applications Development * > > ------------------------------------------ > > Search the list archives before you post > > http://marc.theaimsgroup.com/?l=php-db > > ------------------------------------------ > > /* > > About all some men accomplish in life is to send a > > son to Harvard. > > */ > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: > http://www.php.net/unsub.php > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.db (#36726) next »