You are here: Re: Can a form change session variables? « PHP Programming Language « IT news, forums, messages
Re: Can a form change session variables?

Posted by Kurda Yon on 01/13/08 03:25

On Jan 12, 9:57 pm, seaside <seaside...@mac.com> wrote:
> On 13 Jan., 03:51, Kurda Yon <kurda...@yahoo.com> wrote:
>
> > In the first page I declare a session variable. Than, on the same
> > page, I make a form which contains a variable which has the same name
>
> PHP does not automaticall register variables with your session.
>
What do you mean under "PHP ... register"? I have registered variables
by "session_register".

> Please reviewhttp://de.php.net/manual/en/ref.session.phpfor details.
>
> Do you access your (expected) form/session variable like this:
> $_SESSION['count'] ?
No. I do like that:
session_start();
session_register("txt_l_1");
...........
print "<input type='text' name='txt_l_1' value=\"$txt_l_1\" >\n";

 

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

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