John Taylor-Johnston wrote:
Jason wrote:
RTFM again.
Jason, again, I RTFM, but did not get it working.
Otherwise I wouldn't have dared ask a question.
Sessions depends on a number of factors
including your version of PHP and the setting of register_globals.
The FM manual says:
"$_SESSION
Instead of
while(list($k,$v)=each($_POST)){
$_SESSION[$k]=$v;
//echo "_name_ ".stripslashes($k)." _value_
".stripslashes($v)."";
}
why not just
$_SESSION = array_merge($_SESSION,$_POST);
???
Michael Kimsal
http://www.phpappserver.com
734-480-9961
--
PHP General Mailing List (http://www.php
Thanks.
John
> When faced with this problem I tried the following (works)
>
> The top section of PHP code just reads the POST return array
> and plops it into a series of successive _SESSION vars
>
> Included is a FORM to use that shows the simple code at work
>
> HTH
> TomHenry
>
> ===
When faced with this problem I tried the following (works)
The top section of PHP code just reads the POST return array
and plops it into a series of successive _SESSION vars
Included is a FORM to use that shows the simple code at work
HTH
TomHenry
Tested =
4 matches
Mail list logo