//Author: Stefan Tomic //Janata Lab //Center for Mind and Brain //Developed for the Ensemble Project //generic audio stimulus presentation form //queries the stimulus_matlab field to determine the matlab function //to call for determining stimulus require_once('../include/subject_includes.php'); $_SESSION['submit_stimulus_id'] = TRUE; //get info from experiment_x_form and form tables include('query_form_info.php'); //only play stim if soundCompleted was not sent by flash player, or we are not revisiting the form because of an error in the response posting $play_stim = (!($_SESSION['stimulus_completed']) && !( isset($_GET['inline_error_message']) && ($_GET['inline_error_message'] != "") || isset($_POST['inline_error_message']) && ($_POST['inline_error_message'] != "") )); if($play_stim) { $stimulus_id = $audio_test_beep_id; //output html headers after matrpc_message, in case this function causes an error and a header redirect is sent. include('htmlhead_name_mesg_formhead.php'); printf("\n