You are here: Re: Retaining form values in PHP « PHP Programming Language « IT news, forums, messages
Re: Retaining form values in PHP

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация