note 21928 deleted from ref.session by sniper

From: Date: Tue, 21 Jan 2003 03:16:07 +0000
Subject: note 21928 deleted from ref.session by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42479@lists.php.net to get a copy of this message
somebody might need this (like me) It automagically registers the request's $_POST vars as a $_SESSION var if they do not already exist and fills them :) if (!empty($_POST)) { foreach($_POST as $key=>$value) { if (!session_is_registered("$key")) { session_register("$key"); $_SESSION["$key"] = $value; } } }

« previous php.notes (#42479) next »