//Author: Stefan Tomic //Janata Lab //Center for Mind and Brain //Developed for the Ensemble Project 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) { //call autobio select via matrpc to get the next stim to play $matrpc_send = sprintf("autobio_select_fmri_postscan('%s',%d)",$_SESSION['subject_id'],$_SESSION['session_id']); $relative_stim_path = matrpc_message($matrpc_send); if($relative_stim_path != "") { include('htmlhead_name_mesg_formhead.php'); printf("\n