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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux