|
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
[Back to original message]
|