title: PHP dont trigger on form submit when using Action property
body: <p>I have picked up site from other developer and i dont understand at all why it works when we have 
  page is <code>https://site.com/form.php</code></p>
  
  <pre><code>  &lt;form method="POST" name="myform" enctype="multipart/form-data"&gt;
      ...
      &lt;/form&gt;
  </code></pre>
  
  <p>and as soon as i add <code>action="form.php"</code> or <code>action="https://site.com/form.php"</code> it stop working upon submitting. It does not throw error but it supposed to go trough several functions and it does not. Maybee because he suck down value from address bar in his function i need to take look but is there other way why it might happen?
  Originally it was not HTTPS it was HTTP can this have any effect now i use mod_rewrite to change it all to HTTPS...</p>
  
  <p><strong>This is the only code on the page where the form is submitted  that actually process something, can you explain why it cease to work if i specify action= property in form?!</strong></p>
  
  <pre><code>    require_once "pdf.php";
         $obj=new common();
  
      if($_POST['Submit'])
      {
          switch($type)
          {
            case "docx":
             $obj-&gt;docx_pdf();
            break;
            case "doc":
             $obj-&gt;doc_pdf();
            break;
            case "jpg":
             $obj-&gt;image_pdf();
            break;    
          }
      }
  
     if(($_POST['PDF']) || ($_POST['PDFYES']))
     //$obj-&gt;generate_pdf();
          $obj-&gt;over_all();
  
     if($_POST['Delete'])
          $obj-&gt;delete_files($_POST);
  
     $obj-&gt;get_pdf_file();
     $obj-&gt;display_all();
     $objSmarty-&gt;display("form.tpl");
  </code></pre>