title: why receiving _post in my code doesnt work
body: <p>I am trying to make a form and I want to handle it but I couldn't.</p>
  
  <p>Here is the form from <strong><code>myhome.php</code></strong>.</p>
  
  <pre><code>&lt;form method="post" action="upload.php" enctype="multipart/form-data"&gt;    &lt;br&gt;
          &lt;img  id="im" src="pic.png" width="30" height="30" /&gt;
          &lt;input type="image"  id="su"   " src="sent.png" width="50" height="50" /&gt;
          &lt;input type="file" id="my_file" style="display: none;" /&gt;
          &lt;input type="submit" id="submit" value="fileToUpload" style="display: none;" name="submit"/&gt;       
  &lt;/form&gt;
  </code></pre>
  
  <p>I am using jQuery to connect the pictures to the inputs.</p>
  
  <p>The problem is that I can't receive the data in <code>upload.php</code> - it gives me an empty <code>_post['submit']</code> .</p>
  
  <p><strong><code>upload.php</code></strong>:</p>
  
  <pre><code>    &lt;?php
  
  if(isset($_POST["submit"])) {
  
          echo "its not empty " ;
  
      } else {
          echo "error";
  
      }
  
  ?&gt;
  </code></pre>