Hello I have created a small form for users that they can easily preview then submit the form so like 1st phase user fills the form and click on preview then on preview page thier submitted information will be shown up and at the bottom of the page they will have 2 option submit or edit the details
submit_form.php
<form name="myform" method="POST" action="preview.php">
<label>
<p>Name</p>
<p class="info"><input type="text" name="name" class="textfield1" placeholder="Full Name" readonly /></p>
</label>
<div class="clear"></div>
<label>
<p>Date</p>
<p class="info"><input type="text" name="date" class="textfield1" placeholder="Username" /></p>
</label>
<label>
<p>Comments</p>
<p class="info">
<textarea placeholder="Enter Your Comments and Feedback Please" name="comment"></textarea>
</p>
</label>
<div class="clear"></div>
<div class="input" style="text-align:center;">
<p> </p>
<input type="submit" name="submit" value="Preview" class="btn1" />
<input type="reset" value="Reset" class="btn1" />
</div>
</form>
Here is the preview.php page
<form name="submit_report" method="POST" action="submit_query_rep.php">
<label>
<p>Name</p>
<p class="info"><?php echo $name = $_POST['name']; ?></p>
</label>
<div class="clear"></div>
<label>
<p>Date</p>
<p class="info"><?php echo $date = $_POST['date']; ?></p>
</label>
<div class="clear"></div>
<label>
<p>Comments</p>
<p class="info">
<?php echo $comments = $_POST['comment']; ?>
</p>
</label>
<div class="clear"></div>
<div class="input" style="text-align:center;">
<p> </p>
<input type="submit" value="Submit" class="btn1" />
<a href="submit_rep.php" style="text-decoration:none;" class="btn1">Edit<a/>
</div>
</form>