title: Album coding errors, simple PHP
body: <p>I'm currently trying to develop the following function:</p>
  
  <p>When someone wants to see their album or profile photos, I would like to use either <code>album_id</code> or <code>id</code> in the url, like this:</p>
  
  <pre><code>album.php?album_id=(numeric Number)
  album.php?id=(numeric number)
  </code></pre>
  
  <p>I am currently able to execute the first command and when I attempt the second, it fails to load instead I'm taken to the index page (as per the script's design.)</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$album_id = addslashes(is_numeric($HTTP_GET_VARS["album_id"]));
  $profile_id = addslashes(is_numeric($HTTP_GET_VARS["id"]));
  ?&gt;
  &lt;?php
  if($album_id==Null||!$profile_id==Null)
  {
      print("&lt;script language='JavaScript'&gt; window.location='index.php'; &lt;/script&gt;");
  }
    else
  {
  if ($album_id==$album_id)
  {
      include("/home/emo/public_html/incldues/layout/photos/pages/albums/album_photos.php");
  }
    else
  {
  if ($profile_id==$profile_id)
  {
      include("/home/emo/public_html/incldues/layout/photos/pages/albums/profile_photos.php");
  }
    else
  {
      include("/home/emo/public_html/incldues/layout/photos/pages/albums/album_photos.php");
  }
  }
  }
  ?&gt;
  </code></pre>
  
  <p>And to clarify, those "pages" contain nothing but bold saying:
  <strong>Show album photos</strong> and <strong>Show user photos</strong></p>
  
  <p>But what I can't seem to fathom as to what my problem might be.</p>