|
Posted by Steve Poe on 08/04/06 19:25
Jerry (and felllow PHP gang),
Well, I still could not get sessions to work past a submitted form, but
I had a breakthrough. Using the hidden input fields like:
'<input type="hidden" name="client_account" value="<? echo
str_pad($_POST["account_number"], 6, " ", STR_PAD_LEFT)?>">' I was
able to see the variable with the value in it.
Until I figure out why sessions do not work, I can at least add hidden
input fields to transfer needed values.
Thanks.
Steve
Steve Poe wrote:
> I must more clueless than I thought. I added 'session_start();' to the
> begining of each PHP I am using and I still do not see the client
> account after I submit it. I see it in the _SESSION *before* I hit
> submit.
>
> Steve
>
> > It needs to be on EVERY PAGE which uses sessions. Otherwise the
> > $_SESSION array will not be usable on that page. You can save data to
> > $_SESSION, but it won't be saved in the session.
Navigation:
[Reply to this message]
|