Re: Don't mean to be repetitive - Session Variables
| From: | Stuart Felenstein | Date: | Mon, 11 Oct 2004 13:24:00 +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-36728@lists.php.net to get a copy of this message | ||
Jason, thank you for all the help today!
It's all working now.
However, warning: I maybe back when I try to slam it
all into the database.
Stuart
--- Jason Wong <php-db@gremlins.biz> wrote:
> On Monday 11 October 2004 19:42, Stuart Felenstein
> wrote:
> > 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?
>
> Yes (aside from the typos above).
>
> > 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 ?
>
> At this point $_SESSION['MyName'] is not defined
> (not registered, and even if
> it was registered you have nothing to put in it just
> yet) and hence setting
> your field value to it is meaningless.
>
> --
> 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
> ------------------------------------------
> /*
> When you say "I wrote a program that crashed
> Windows", people just stare at
> you blankly and say "Hey, I got those with the
> system, *for free*".
> */
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>