<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>New Post</title>
</head>
<body>
<p> Sub-Category: <select><option id="subCtgry"></option></select></p>
<p> Location: <select><option id="lctn"></option></select></p>
<p> Title: <input type="text" name="ttl" size="80"></p>
<p> Price: <input type="text" name="prc" size="10"></p>
<p> Description: <textarea class="scrollabletextbox" name="prc" style="width:600pt;height:100pt;overflow:scroll"></textarea></p>
<p> Email: <input type="text" name="email" size="80"></p>
<p> Confirm Email: <input type="text" name="cEmail" size="80"></p>
<p>I agree with terms and conditions <input type="checkbox" name="chckbx"></p>
<form>
Optional Fields:
<br>
<br>
Image 1 (Max 5 MB): <input type="file" name="img1" size="4MB">
<br>
<br>
Image 2 (Max 5 MB): <input type="file" name="img2">
<br>
<br>
Image 3 (Max 5 MB): <input type="file" name="img3">
<br>
<br>
Image 3 (Max 5 MB): <input type="file" name="img3">
<br>
<br>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
</body>
</html>
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.