Sure you can, however,

1) u prob. want $_SESSION['name'] = $_POST['name'];
2) remember that if you are calling this within the scope of a function you
will have to use $GLOBALS to declare $name as a global before you utilise
session_register.

Todd.

> -----Original Message-----
> From: Randy Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 21 September 2002 5:10 PM
> To: Chris Shiflett; Ramesh Nagendra Pillai
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] question about taking post to session
>
>
> hello,
>
> how could i take all the variables in $_POST[""] and move them to
> $_SESSION[""]?
>
> example
>
> $_POST["name"]=$_SESSION["name"]
>
>
> Thanks in advance
>
>
> Randy
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to