title: PHP + jQuery gallery
body: <p>I have this code: </p>
  
  <pre><code>&lt;img src="'. $random_pics[$i] .'" width="'.$thumb_width.'" alt="" name="?album='. urlencode($albums[$i]) .'" class="alb" /&gt;
  
  &lt;div id="pictures"&gt;&lt;/div&gt;
  &lt;script&gt;
  $('.alb').click(function(){
      var href = $(this).attr('name');
      $("#pictures").load('display.php'+href)
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Then I have a <code>display.php</code> file, where I use <code>$_GET['album']</code> to get the album name and display the photos from that album. 
  How it should work: when I click the image, the <code>pictures</code> div should load the <code>display.php?album=somealbum</code>, but for some reason it does not... My files are bigger, but I think the problem is here.</p>