title: display loading message in php self submit form
body: <p>I have any form for upload video, this worked using PHP / MySQL and submit <strong><code>PHP_SELF</code></strong> action. If upload video = TRUE I print video is success and if upload video = FALSE I print error message. </p>
  
  <p>Now I need to show display loading message or loading gif animator (using jQuery) after clicking the submit button and hidding the loading message after showing the TRUE/FALSE upload message. Any way to create this?</p>
  
  <p>My form:</p>
  
  <pre><code>&lt;?PHP
  if (isset($_POST['submit']) &amp;&amp; $_POST['submit'] == 'uploadvideo')
       {
        //CHECK TRUE OR FALSE .....
       }
  if (isset($uploaded) &amp;&amp; $uploaded == TRUE){?&gt;
       &lt;div class="successbox"&gt;success upload!!!&lt;/div&gt;
  &lt;?PHP } 
  if (isset($uploaded) &amp;&amp; $uploaded == FALSE)
      {?&gt;
       &lt;div class="errorbox"&gt;error upload!!!&lt;/div&gt;
  &lt;?PHP } ?&gt;
  
      &lt;form action="&lt;?PHP echo URL . '/video.php?id=' . int($_GET['id']);?&gt;" method="POST" enctype="multipart/form-data"&gt;
        &lt;table width="100%" cellpadding="5" cellspacing="0" border="0"&gt;
        &lt;input type="file" size="40" name="video_file" maxlength="50"&gt;
        &lt;input type="Submit" name="submit" value="uploadvideo"&gt;
        &lt;/table&gt;
        &lt;/form&gt;
  </code></pre>