show the form only if submit is not set 
<p>I am trying to show the form only if submit is not set, and if set then upload file and show link to same page so that new file could be uploaded again.</p>

<p>It shows the form even after I click on the submit button. I have not added upload script now.</p>

<pre><code>&lt;body&gt;

&lt;?php 
if (isset($_POST['submit']))
{
$output_form == 'no';
echo 'hiiiii';
}
else {
$output_form = 'yes';
  }
if($output_form = 'yes')
{
?&gt;

&lt;form enctype="multipart/form-data" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;"&gt;
&lt;input type="file" name="uploadpic"  /&gt;
&lt;input type="submit" value="Upload" name="submit" /&gt;
&lt;/form&gt;

&lt;?php
}
?&gt;

&lt;/body&gt;
</code></pre>
