Hello,
is there an easy/fast way to register variables in session keys?
I have found and use the following to get the input from form variables:
while (list($key,$val)=each($_POST)) {
$$key = $val;
}
.... and I was wondering if there is a similar way to do the same for session keys. I would like to combine it with the above snippet in order to use a session for my forms.
The only way I know to register a session key, is the long way:
$_SESSION['name'] = $name;
Any clues?
thanks