|
Posted by Rik Wasmus on 01/14/08 02:03
On Mon, 14 Jan 2008 02:59:39 +0100, Kurda Yon <kurdayon@yahoo.com> wrote=
:
> On Jan 13, 8:46 pm, "Peter Pei" <yan...@telus.com> wrote:
>> 4 works if you did things right. cannot go more detailed than that =
>> unless
>> see some code.
>
> OK. In the first.php I have:
> session_start();
> session_register("ex");
$_SESSION['ex'] =3D 2.0;
$ex =3D &$_SESSION['ex'];
> .........
> <form enctype=3D"multipart/form-data" action=3D"second.php" method=3D"=
post">
> .....
> print "<input type=3D'text' name=3D'ex' value=3D\"$ex\">\n";
> .....
> </form>
>
> When I submit the form I put in the text field corresponding to $ex
> 3.0.
>
> In the second.php I have:
> session_start();
> $_SESSION["ex"] =3D $ex;
Why overwrite the value in the $_SESSION array here? If you're not even =
=
using it, why store it to begin with?
> print "=3D=3D=3D> $txt_l_1";
> print "---> {$_SESSION["txt_l_1"]}";
Euhm, what magic do you expect from a in this sample code uninitiated & =
=
unassigned variable $txt_1_1?
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|