%s
%s
%s
",LANGUAGE_TEXT_ERROR_PREVIOUS_SESSION_NOT_FOUND,LANGUAGE_TEXT_ERROR_CHECK_BOX_IF_CONTINUING,LANGUAGE_TEXT_ERROR_CHECK_NAME_DOB);
}
if( !$claim_continuing && $found_session ) {
$continue_error_message = sprintf("%s
%s
",LANGUAGE_TEXT_ERROR_PREVIOUS_SESSION_FOUND,LANGUAGE_TEXT_ERROR_CHECK_BOX_IF_CONTINUING);
}
if($valid_sid) {
//if $valid_sid is true and an error condition occurred, this will reset valid_sid back to false
//this will block further processing of the subject ID
$valid_sid = empty($continue_error_message);
}
// update the session with the current information, if found
if ($valid_sid && $claim_continuing && $found_session ) {
//re-instantiate the session if we know it exists, and if participant claimed continuing
find_old_session($get_subject_id);
include('update_session.php');
}
include('subidgen_' . $SUBJECT_ID_GENERATOR . '.php');
if($new_session_created) {
//if $new_session_created is true (see subidgen routines), then update_session and continue to next form
include('update_session.php');
}
//get info from experiment_x_form and form tables
include_once('query_form_info.php');
// include HTML elements
include("htmlhead_formhead.php");
if (!empty($continue_error_message)) {
print "$continue_error_message\n";
}
$_GET['continued_session_checkbox'] = true;
include('subidgen_generic_html.php');
include("htmlfoot.php");
?>