'') { $promotionID = check_promotion($conn,null,$promotioncode); if ($promotionID < 0) $promotionOK = false; } // echo "Does user already exist? [" . $userAlreadyExists . "] from fn call: [" . userExists($conn,$login) ."]."; if ($being_submitted && $captcha_passed && $passwords_match && $required_vars_passed && !$userAlreadyExists && $promotionOK && $birthdateValid && $loginIDValid && $emailValid) { //echo "we add a new user!"; $role_enumID = enumTextToID($conn,'ROLE','USER') or die ("Unable to connect to database."); $pwd = md5(strtolower($login) . '.' . strtolower($password1)); $update= "insert into login (login, password, parent_last_name, parent_first_name, child_first_name, role_enumID, emailaddress, birthdate, grade_enumID, password_reminder, school_name, school_district, school_type_enumID, residence_state_enumID, residence_country_enumID, citizen_state_enumID, citizen_country_enumID, heard_about, interests, suggestions, demo_user, active, cash, join_date, last_login_date,receive_email) "; $update.=" values ( "; $update.= "'". addslashes($login). "', "; $update.= "'". $pwd . "', " ; $update.= "'". addslashes($parent_last_name). "', "; $update.= "'". addslashes($parent_first_name). "', "; $update.= "'". addslashes($child_first_name). "', "; $update.= $role_enumID . ", "; $update.= "'". addslashes(strtolower($emailaddress)). "', "; if (!empty($birthdate)) $update.= "'" . $birthdate . "' , "; else $update.=" NULL, "; if (!empty($grade_enumID)) $update.= $grade_enumID . ", "; else $update.=" NULL, "; $update.= "'". addslashes($password_reminder). "', "; $update.= "'". addslashes($school_name). "', "; $update.= "'". addslashes($school_district). "', "; if (!empty($school_type_enumID)) $update.= $school_type_enumID . ", "; else $update.=" NULL, "; if (!empty($residence_state_enumID)) $update.= $residence_state_enumID . ", "; else $update.=" NULL, "; if (!empty($residence_country_enumID)) $update.= $residence_country_enumID . ", "; else $update.=" NULL, "; if (!empty($citizen_state_enumID)) $update.= $citizen_state_enumID . ", "; else $update.=" NULL, "; if (!empty($citizen_country_enumID)) $update.= $citizen_country_enumID . ", "; else $update.=" NULL, "; $update.= "'". addslashes($heard_about). "', "; $update.= "'". addslashes($interests). "', "; $update.= "'". addslashes($suggestions). "', "; $update.= "'f', 't', 0,"; $update.= "now(),"; $update.= "now()"; if ($receive_email) $receive_email = 'TRUE'; else $receive_email = 'FALSE'; $update.= ",$receive_email"; $update.= ") ; "; // this is the last //echo "
$update
"; pg_exec($conn,$update); // or die("Unable to connect to database."); $errormessage = pg_errormessage($conn); $_SESSION['user'] = authenticate($conn, $login, $password1); // sanity check & user creation. $user = $_SESSION['user']; if ($user!=null) { grant_free_promotions($conn,$user->id,$birthdate,$grade_enumID,$residence_state_enumID); if ($promotioncode <> '') grant_promotion($conn,$promotionID,$user->id); } } ?>

Join Us

How to join Kidtest.comSM

Joining is free and easy!

Students must be registered individually so our computers can keep track of all of your tests and scores. Sisters and brothers join under their own names.

Memberships are not transferable because allowing others to use your Username and Password to take tests will affect the scoring and ranking information that Kidtest.comSM keeps current and retains just for you. Tell those who may wish to use your membership to take tests to join Kidtest.comSM themselves. Remember, joining is free for everyone.

Answer the individual student questions below and click on "Join! (Free)" to become a Kidtest.comSM member.

If you have questions about your privacy as a Kidtest.comSM member, please read our Privacy statement.

Please send us your questions by e-mail (info@kidtest.com) and we'll reply as soon as we can. ENDHOWTO; ?> Please provide all the information required (see bolded prompts).

"; if ($being_submitted & !$loginIDValid) echo "

The user name is invalid. It cannot contain any spaces. Please try again.

"; if ($being_submitted & !$emailValid) echo "

The e-mail address is invalid. Please try again.

"; if ($being_submitted & !$passwords_match) echo "

The passwords you provided do not match. Please try again.

"; if ($being_submitted & $userAlreadyExists) echo "

Sorry, that user name has been taken. Try a different name.

"; if ($being_submitted & !$birthdateValid) echo "

Sorry, that birth date is invalid.

"; if ($being_submitted & !$promotionOK) echo "

Sorry, that promotion code is invalid. " . promotion_error_text($promotionID) . "

"; if ($being_submitted & !$captcha_passed) echo "

Sorry, that verification code is invalid. Please try again.

"; ?> \n"; $emailHeaders .= "Return-Path: \n"; // Return path for errors $emailSubject = "Kidtest.com Membership"; mail($emailaddress,$emailSubject,$emailBody,$emailHeaders); } echo "

Congratulations! You have successfully joined the Kidtest community and have been registered as a user of Kidtest.com.

"; echo "

To navigate through the Kidtest system while you are logged in, simply use the navigation bar on the right-hand side of the screen or return to Kidtest Home. For instance, if you want to view the available educational diagnostics, aptitude tests or other assessments, click on Assessments and Aptitude Tests under the Services heading. If you’d like to view assessments that you already have obtained, click on My Tests in the My Account box to the right."; /* print <<< ENDNOTHER

To register another user right away, click here Register Another User.

To get started right away, you can also click on one of the categories listed below:

ENDNOTHER; */ $OutputGoogle = true; print <<< ENDGOOGLE

ENDGOOGLE; } else { echo "

For some reason, we were unable to add your record. Sorry. The error message was:

"; echo $errormessage; echo "
 
"; displayJoinUs($conn); } } ?> // // // // //

//ENDGOOGLE2; //} ?>