Sorry,i was not clear enough.I meant to display the user submitted data after passing validation just so they can see ALL their entered info for a last chance
See this line under your Original post
Can anyone share me some piece of code that displays user submitted data for another chance to verify and correct it before finally inserting it into the database?
How do you want to verify the coding.if you application is not going to verify the user inputs who is going to do it.
Any way if you want just display user entered values, try like this.
[PHP]<?php
if($_POST['send'])
{
$form = '
<form action="'.$PHP_SELF.'" method="POST">
<input name="uname" type="hidden" value="'.$_POST['uname'].'">
<input name="continue" value="continue" type="submit" />
</from><br>';
echo '<b>Inserted Values</b><br>';
echo '<li>'.$_POST['uname'].'</li>';
echo $form;
}
if($_POST['send']){
echo 'Do the stuffs for insert to MySQL';
}
?>
<html>
<body>
<form action="<?php $PHP_SELF ?>" method="POST">
USER NAME : <input name="uname" type="text" value="<?=$_POST['uname']?>"/>
<input name="send" value="SEND" type="submit" />
</form>
</body>
</html>[/PHP]