title: Why doesn't this $_GET work
body: <p>I am just trying to get the values from a table, but for some reason GET isn't working for me, or I am doing something wrong. Here is how I create my table in one php file:</p>
  
  <pre><code>    &lt;?php
      .
      .
          .
          .
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;Login ID&lt;/td&gt;";  
          $j=1;
          echo "&lt;td&gt;&lt;input name=$j type='text' value='$line[$j]' size=20/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;Name&lt;/td&gt;";  
          $j=2;
      echo "&lt;td&gt;&lt;input name=$j type='text' value='$line[$j]' size=20/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;Password&lt;/td&gt;";
      $j=3;  
      echo "&lt;td&gt;&lt;input name=$j type='text' value='$line[$j]' size=20/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;Birthday&lt;/td&gt;";
      $j=4;  
      echo "&lt;td&gt;&lt;input name=$j type='text' value='$line[$j]' size=20/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;Address&lt;/td&gt;";
      $j=5;  
      echo "&lt;td&gt;&lt;input name=$j type='text' value='$line[$j]' size=20/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;Email&lt;/td&gt;";
      $j=6;  
      echo "&lt;td&gt;&lt;input name=$j type='text' value='$line[$j]' size=20/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  
      echo "&lt;tr&gt;";
      echo "&lt;td&gt;Phone Number&lt;/td&gt;";
      $j=7;  
      echo "&lt;td&gt;&lt;input name=$j type='text' value='$line[$j]' size=20/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  ?&gt; 
  </code></pre>
  
  <p>The names should be the number 1-7 right?</p>
  
  <p>In another php file I attempt to access the values in those fields with he following code:</p>
  
  <pre><code>    &lt;?php
  .
  .
  .
  .
  $login_id = $_GET['1'];
  $name = $_GET['2'];
  $pw = $_GET['3'];
  $bday = $_GET['4'];
  $address = $_GET['5'];
  $email = $_GET['6'];
  $phno = $_GET['7'];
  
  
  echo "new: $login_id, $name, $pw, $bday, $address, $email, $phno";
  
  ?&gt;
  </code></pre>
  
  <p>Here is what I end up getting back: <code>new: , , , , , ,</code></p>
  
  <p>So what is it that I am doing wrong? I can't seem to find anything wrong with my code. I know I should probably be using $_POST for the password.</p>