<?php if($_GET['continue'] != 1) { // form items you wish to exclude from the info list. you can just make this blank if you dont want to exclude anything $exclude = array('submit','hiddenvalue'); foreach($_POST as $key => $val) { // if its in the exclude array, skip it if(in_array($val, $exclude)) continue; // print out the info echo $key.": ".$val."<br />\n"; } ?> <br /><br /> <li><a href="<?=$_SERVER['PHP_SELF']?>?continue=1">Yes, this information is correct</a></li> <li><a href="javascript:history.go(-1);">No, this information is not correct. (Go back)</a></li> <? } else { // do your "its confirmed code" // for example, forward the user to a page (uncomment the line): // header("Location: http://url.com"); } ?>