title: PHP file to accept user input
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;New Post&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p&gt; Sub-Category:  &lt;select&gt;&lt;option id="subCtgry"&gt;&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;
  &lt;p&gt; Location:  &lt;select&gt;&lt;option id="lctn"&gt;&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;
  &lt;p&gt; Title: &lt;input type="text" name="ttl" size="80"&gt;&lt;/p&gt;
  &lt;p&gt; Price: &lt;input type="text" name="prc" size="10"&gt;&lt;/p&gt;
  &lt;p&gt; Description: &lt;textarea class="scrollabletextbox" name="prc" style="width:600pt;height:100pt;overflow:scroll"&gt;&lt;/textarea&gt;&lt;/p&gt;
  &lt;p&gt; Email:  &lt;input type="text" name="email" size="80"&gt;&lt;/p&gt;
  &lt;p&gt; Confirm Email: &lt;input type="text" name="cEmail" size="80"&gt;&lt;/p&gt;
  &lt;p&gt;I agree with terms and conditions &lt;input type="checkbox" name="chckbx"&gt;&lt;/p&gt;
  &lt;form&gt;
  Optional Fields:
  &lt;br&gt;
  &lt;br&gt;
      Image 1 (Max 5 MB): &lt;input type="file" name="img1" size="4MB"&gt;
  &lt;br&gt;
  &lt;br&gt;
      Image 2 (Max 5 MB): &lt;input type="file" name="img2"&gt;
  &lt;br&gt;
  &lt;br&gt;
      Image 3 (Max 5 MB): &lt;input type="file" name="img3"&gt;
  &lt;br&gt;
  &lt;br&gt;
      Image 3 (Max 5 MB): &lt;input type="file" name="img3"&gt;
  &lt;br&gt;
  &lt;br&gt;
      &lt;input type="submit" value="Submit"&gt;
      &lt;input type="reset" value="Reset"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to write a PHP file to accept user input from the New Post above. And also want to show a prewiew to user before they confirm. How can I do? Thanks for your help.</p>