dustlands title

You can click your browser's back button to complete the form and re-submit your feedback."); } else { if ($_POST['completed'] == "yes") { $fb_comment = addslashes($fb_comment); $fb_from_email = addslashes($fb_from_email); $ins_feedback = "INSERT INTO feedback VALUES ('', '".$fb_from_email."','".$fb_comment."')"; $result = mysql_query($ins_feedback, $GLOBALS['connection']); if (!$result) { print("Sorry, there was a problem adding your feedback to the database.

Please click the back button on your browser and try to submit your feedback again."); } else { print("Thank you, your feedback has been saved successfully"); } } else { print("Your attempt at URL string manipulation has failed - DOH!"); } } // end input validation } // end function function input() { $doc_prelim = $_POST['doc_prelim']; $doc_breakdown = $_POST['doc_breakdown']; $doc_types = $_POST['doc_types']; $doc_maint = $_POST['doc_maint']; $doc_living = $_POST['doc_living']; $doc_rev = $_POST['doc_rev']; $doc_weight = $_POST['doc_weight']; $des_activity = $_POST['des_activity']; $des_skills = $_POST['des_skills']; if ($_POST['completed'] == "yes") { $doc_prelim = addslashes($doc_prelim); $doc_breakdown = addslashes($doc_breakdown); $doc_types = addslashes($doc_types); $doc_maint = addslashes($doc_maint); $doc_living = addslashes($doc_living); $doc_rev = addslashes($doc_rev); $doc_weight = addslashes($doc_weight); $des_activity = addslashes($des_activity); $des_skills = addslashes($des_skills); $ins_questionnaire = "INSERT INTO questionnaire VALUES ('','".$doc_prelim."','".$doc_breakdown."','".$doc_types."','".$doc_maint."','".$doc_living."','".$doc_rev."','".$doc_weight."','".$des_activity."','".$des_skills."')"; $result = mysql_query($ins_questionnaire, $GLOBALS['connection']); if (!$result) { print("Sorry, there was a problem adding your responses to the database.

Please click the back button in your browser and attempt to submit the questionnaire again."); } else { print("Thank you. Your responses have been saved successfully."); } } else { print("Your attempt at URL string manipulation has failed - DOH!"); } } // end function ?>