When I do a 'print_r ($session)' the values in the session variable is not show? Is there a way I can register the $POST values in a session?
foreach( $_POST as $key => $v) { $_SESSION['new'] = $_POST['v']; } print_r($_POST); print_r($_SESSION);
anybody?
What you're asking the script to do (repeatedly) is set $SESSION['new'] to the same value as $POST['v']. If you don't have a form field named "v" you won't get anything. I think you're after
foreach($_POST as $key=>$v) { $_SESSION[$key] = $v; }