View Single Post
  #2  
Old 08-22-2006, 01:00 PM
graham graham is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
graham is on a distinguished road
Talking

PHP Code:
session_start();
$_SESSION['arrayname'][] = $_GET['name'];



It's a bad idea to use a superglobal like $_SESSION like an array of your own. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - session variable overwriting
View Single Post
  #2  
Old 08-22-2006, 01:00 PM
graham graham is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
graham is on a distinguished road
Talking

PHP Code:
session_start();
$_SESSION['arrayname'][] = $_GET['name'];



It's a bad idea to use a superglobal like $_SESSION like an array of your own. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote