Re: Don't mean to be repetitive - Session Variables
| From: | Jason Wong | Date: | Mon, 11 Oct 2004 13:07:34 +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-36727@lists.php.net to get a copy of this message | ||
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*".
*/