How to Combine Post and Upload in HTML
<pre><code>&lt;body&gt;
    &lt;form method="post" action="xx.php" &gt;
        Enter Title of the Post&lt;INPUT type="text" name="title"&gt;
    &lt;br/&gt;
    Enter Description
    &lt;textarea rows="10" cols="50" wrap="physical" name="post"&gt;
    &lt;/textarea&gt;&lt;br/&gt;
    &lt;input type="Submit" value="Post"&gt;

    &lt;br/&gt;&lt;br/&gt;


  &lt;form enctype="multipart/form-data" action="xx.php" method="post"&gt;
    &lt;input type="hidden" name="MAX_FILE_SIZE" value="1000000" /&gt;
    Choose a file to upload: &lt;input name="uploaded_file" type="file" /&gt;
    &lt;input type="submit" value="Upload" /&gt;
  &lt;/form&gt;
</code></pre>

<p>How Do I get the user to write the text and browse the image, only after which pressing a single button would both upload the text and the file?</p>
