\n", $_SERVER['PHP_SELF'] ); print LANGUAGE_TEXT_BREAK_INSTRUCTION; printf("

\n" ); printf( "\n",LANGUAGE_TEXT_QPI_NEXT_BUTTON ); printf( ""); } elseif( is_numeric( $trialId ) && $trialId > 0 ) // we got a good result from the matrpc call { include_once('htmlhead_name_mesg_formhead.php'); $_SESSION['trial_id'] = $trialId; // prototype is: present_trial_stimuli( $trialId, $duration1, $pause1, $duration2, $pause2 ); present_trial_stimuli( $trialId ); // defaults are fine for the other parameters printf("\n"); } else // ERROR { } } else // stim have already been played. display the form with its questions, etc. { $submit_to = "submit_response.php"; $trial_form = TRUE; include_once('htmlhead_name_mesg_formhead.php'); include_once('display_form_fields.php'); include_once('htmlfoot.php'); } ?>