debug_mode(TRUE); // The form submits to itself, so see if the user has submitted the form. if (array_key_exists('my_submit_button_name', $_POST)) { // Use the AYAH object to get the score. $score = $ayah->scoreResult(); // Check the score to determine what to do. if ($score) { // Add code to process the form. echo "Hello ".$_POST['name'].", You are a human!"; } else { echo "You are NOT a human!"; } } ?>