'', 'login_password'=>''); return $arr_tph_user; } function validate_registration($arr_tph_user=array(), $validate) { global $APP_MSG; $APP_MSG = ""; $bool_valid = true; $err_msg_arr = array(); // username if(isset($validate["login_username"])) { if($arr_tph_user["login_username"] == "") { $err_msg_arr["login_username"] = "Please enter user name"; $bool_valid = false; } } //password if(isset($validate["login_password"])) { if($arr_tph_user["login_password"] == "") { $err_msg_arr["login_password"] = "Please enter password"; $bool_valid = false; } } if(count($err_msg_arr)>0) { //$err_note = "
".ERR_SORRY_NOTE."
"; $err_msgs = "