note 53984 added to ref.session

From: Date: Mon, 20 Jun 2005 09:47:01 +0000
Subject: note 53984 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-90668@lists.php.net to get a copy of this message
############# ****************** chsession2.php ****************** ----------------------------- <?php session_start(); foreach($_POST as $ch => $vl) { $_SESSION[$ch]=$vl; } header("Location: ".$url); exit(); ?> ------------------------------ Notes: here we will save new _SESSION values and will redirect to index.php To test this script ..input values: key : monitor value:lcd then key : whitehouse value:georgebush now try key : monitor value:clasic what you see there? the same key's value was replaced with a new value! GREAT! © you can use this script,modify,sell and more Thanks for you read all this stuff! , xpectmore @ scriptlance.com(the best freelance website on the world) 3xpectmore.com 01:30 AM gmt+2 ,Thuesday June,21 Romania Special thanks to Php team , zend , apache, linux ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53984 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53984&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53984&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53984&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53984&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+53984&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53984&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53984&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90668) next »