title: form POST data array isn't posting into the php
body: <p>This is some HTML code i have that echos from the A php file. I am Posting the data as an array, but when i read the array no data seems to pass to the B php file.</p>
  
  <pre><code>&lt;form method="POST" id="Insert" action="Insert.php"&gt;
      &lt;div&gt;
          &lt;div&gt;
              Trans# : 
          &lt;input 
          type="text" name="Out[]" value="'.$row['TransNum'].' "readonly
          &gt;
          &lt;/div&gt;
  
          &lt;div&gt;
              Date : 
          &lt;input 
          type="text" name="Out[]" value="'.$row['Date'].'"
          &gt;
          &lt;/div&gt;
  
          &lt;div&gt;
              To / From : 
          &lt;input 
          type="text" name="Out[]" value="'.$row['ToWhere'].'"
          &gt;
          &lt;/div&gt;
  
          &lt;div&gt;
              Amount : $
          &lt;input 
          type="text" name="Out[]" value="'.$row['Amount'].'"
          &gt;
          &lt;/div&gt;
  
          &lt;div&gt;
          &lt;input 
          type="submit" 
          value="UPDATE"
          name="SUBMIT"
          &gt;
          &lt;/div&gt;
      &lt;/div&gt;  
  &lt;/form&gt;                 
  </code></pre>
  
  <p>And here is the php code.</p>
  
  <pre><code>if(isset($_POST['SUBMIT']))
  {
      $PostData = $_POST['Out'];
      implode(", ", $PostData);
      $TransNum = $_PostData[0];
      $Date = $_PostData[1];
      $ToFrom = $_PostData[2];
      $Amount = $_PostData[3];
      $servername = "localhost";
      $username = "user";
      $password = "pass";
      $dbname = "Account";
      $lnfd = "&lt;BR&gt;";
      $HTMLOut = "";
      $HTMLOut .= "Data Should be Here -&gt;".$TransNum.$Date.$ToFrom.$Amount;
      echo $HTMLOut.$lnfd;
      $TableName = "Transfer";
  }
  </code></pre>
  
  <p>I have looked over the code several times and googled the hell out of it, but i cannot figure out why </p>
  
  <pre><code>$Date, $ToFrom, $Amount,  $servername
  </code></pre>
  
  <p>are all printing blank in the php.</p>