title: php isset not working
body: <p>I want to set $choice_1 and $choice_2 but only once per session. I am using $choice_1 and $choice_2 to create image names and I want to avoid drawing different jpegs within a session. I display two chess pieces at <a href="http://communitychessclub.com/rabren" rel="nofollow">http://communitychessclub.com/rabren</a> and I want those two images used for the entire user session.</p>
  
  <pre><code>&lt;?php 
  if (!isset($_SESSION['choice_1'])) {$chessmen = array("N","Q","R","B","K","P"); 
  
  $random_piece = array_rand($chessmen); 
  $choice_1 = $chessmen[$random_piece];
  unset($chessmen[$random_piece]);
  
  $random_piece = array_rand($chessmen); 
  $choice_2 = $chessmen[$random_piece];} 
  ?&gt;
  </code></pre>