note 70738 deleted from function.session-register by philip

From: Date: Sun, 04 Mar 2007 00:24:52 +0000
Subject: note 70738 deleted from function.session-register by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-124058@lists.php.net to get a copy of this message
Note Submitter: estereofonico at gmail dot com ---- This tip can be helpful to deal with numerous values in a registered variable. <?php session_start(); if ( isset($_GET['cat']) ) { $_SESSION['cat'] = $_GET['cat']; } else { $_SESSION['cat']=0; } ?> <a href="index.php?cat=1">et cat to 1</a> <a href="index.php?cat=2">et cat to 2</a> Cat is : <?php echo $_SESSION['cat']; ?>

« previous php.notes (#124058) next »