session_name("CCLTrolley")

From: Date: Sun, 02 Oct 2005 03:57:34 +0000
Subject: session_name("CCLTrolley")
Groups: php.general 
Request: Send a blank email to php-general+get-223507@lists.php.net to get a copy of this message
$TrolleyContents is a string. Basically what I want to accomplish here is if $TrolleyContents already exists append $AddToTrolley to $TrolleyContents, if not register $TrolleyContents. Am I going about it right? John <?php #printcontents.php session_name("CCLTrolley"); session_start(); if (isset($HTTP_POST_VARS["AddToTrolley"])) { $TrolleyContents = $TrolleyContents.",".$HTTP_POST_VARS["AddToTrolley"]; }else{ session_register("TrolleyContents"); } echo $TrolleyContents; phpinfo(); ?>

« previous php.general (#223507) next »