"); //onSubmit=\"return confirm('Are you ready to submit your answers?');\" echo ("

Please review your answers before submitting.

"); $tripwire = 0; foreach($_POST as $questionID => $answerID) { $questionID = ltrim($questionID,'qid'); if (is_numeric($questionID)) { $question = mysql_fetch_array(mysql_query("SELECT * FROM gforum_SurveyQuestion WHERE Question_ID = ".$questionID." LIMIT 1;")) or die(mysql_error()); $answer = mysql_fetch_array(mysql_query("SELECT * FROM gforum_SurveyAnswer WHERE Answer_ID = ".$answerID." LIMIT 1;")) or die(mysql_error()); echo ("
\n"); echo ("".$question['Question_Name'].": \n"); echo ($answer['Answer_Name']."
\n"); echo ("\n"); echo ("
\n"); $tripwire = 1; } } if ($tripwire == 0) { Header("Location: index.php?empty_set=1"); die(); } echo ("\n"); echo ("\n"); echo ("
"); foreach($_POST as $questionID => $answerID) { echo("\n"); } echo(""); echo ("
"); ?>