Re: [PHP] Re: SESSION array problems UPDATE
- From: aballard@xxxxxxxxx ("Andrew Ballard")
- Date: Thu, 2 Oct 2008 10:46:35 -0400
On Thu, Oct 2, 2008 at 10:37 AM, tedd <tedd.sperling@xxxxxxxxx> wrote:
To all:
The code provided by nathan works for me as well. However, the problem is
not easily explained, but I can demonstrate it -- try this:
http://www.webbytedd.com/zzz/index.php
* A complete listing of the code follows the demo.
When the code is first loaded, the session variables are defined and
populated. Proof of this is shown in the top left corner of the page, which
reports:
Cable Diane
Ron Big
Dirt Joe
Now click the "Continue" button and you will be presented with the next step
which shows a list of the SESSION variables in both the top left corner AND
immediately below "Step 2". Everything is righteous to there.
However, the next portion of the code is the foreach loop where the first
SESSION pair is output correctly, but the rest aren't.
This is followed by another listing of the SESSION variables and this time
is shows that they have completely disappeared.
Okay gang -- what's up with that?
Cut and paste the code and see for yourself.
Cheers,
tedd
tedd,
Is there any chance that session variables are getting auto
registered? The fact that the second time through the loop is
outputting the second letter of each name looks like $first_name is
bound to $_SESSION['first_name'] and $last_name is bound to
$_SESSION['last_name'].
Andrew
.
- Follow-Ups:
- Re: [PHP] Re: SESSION array problems UPDATE
- From: Afan Pasalic
- Re: [PHP] Re: SESSION array problems UPDATE
- References:
- Re: SESSION array problems
- From: Nathan Rixham
- Re: SESSION array problems
- From: Nathan Rixham
- Re: SESSION array problems
- Prev by Date: [PHP] Re: SESSION array problems UPDATE
- Next by Date: Re: [PHP] Re: SESSION array problems UPDATE
- Previous by thread: Re: [PHP] Re: SESSION array problems UPDATE
- Next by thread: Re: [PHP] Re: SESSION array problems UPDATE
- Index(es):