You are here: Re: return values « PHP Programming Language « IT news, forums, messages
Re: return values

Posted by Rik on 10/19/06 04:11

kirke wrote:
> Hi,
>
> I have an idea about returning variables.
>
> in 1st page, there's variable "x1". it's action page is B.
> So, I can use "x1" in B.
>
> $x11 = (int)$_POST['x1'];
>
> B's action page is C
>
> In that case, I want to use "x1" in C.
> So, can I save "x1" in B and use it in C?
>
> for exmaple, can I use following commend in C?
>
> $x22 = (int)$_POST['x11'];

Propagating the values should not be a problem. The question is how. What
is 'B', what is 'C'?

On in include, you won't have to worry about this, it will be automatically
available. On a different request (page change), you'll have to propagate
the value by either a session, or a POST or GET variable.

Be warned to never trust POST or GET variables before extensive validation.
--
Grtz,

Rik Wasmus

 

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

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