Please enter all information !!!"); require("tables/clients.php3"); require($pathinc."close.inc"); require($pathhtml."bottom.inc"); exit(); } /*======================= END ONE OR MORE FIELDS IS EMPTY ===================*/ /*==================================================================== Проверка на наличие такого логина в базе если есть - возврат =====================================================================*/ $database = mysql_connect("localhost", "nobody", "nopass"); $log = mysql_db_query("renals", "select login from doctors", $database); if (mysql_num_rows($log) <= 0){} else{ for($i = 0; $i < mysql_num_rows($log); $i++){ if (mysql_result($log, $i, "login") == $login){ //2 echo("

Sorry, this User Name allready exists.
Please, try again.

"); require("tables/clients.php3"); require($pathinc."close.inc"); require($pathhtml."bottom.inc"); exit(); } } } /*======================================================*/ $query = "insert into doctors("; $query1 = "values("; if($dfirst) {$query .= "fname, "; $query1 .= "'$dfirst', ";} if($dlast) {$query .= "lname, "; $query1 .= "'$dlast', ";} if($dmid) {$query .= "mname, "; $query1 .= "'$dmid', ";} if($mail) {$query .= "e_mail, "; $query1 .= "'$mail', ";} if($phone) {$query .= "phone, "; $query1 .= "'$phone', ";} if ($login) {$query .= "login, "; $query1 .= "'$login', ";} if ($addressoffice) {$query .= "address_office, "; $query1 .= "'$addressoffice', ";} if ($phoneoffice) {$query .= "phone_office, "; $query1 .= "'$phoneoffice', ";} if ($licensenumber) {$query .= "license_number, "; $query1 .= "'$licensenumber', ";} if ($deanumber) {$query .= "dea_number, "; $query1 .= "'$deanumber', ";} if ($medicalinstitute) {$query .= "medical_institute, "; $query1 .= "'$medicalinstitute', ";} if ($password == $password1){ $query .= "password, "; $query1 .= "'".fcrypt($password)."', "; } else{ //3 echo("

Please rewrite Password !!!

"); require("tables/clients.php3"); require($pathinc."close.inc"); require($pathhtml."bottom.inc"); exit(); } $query .= "doctor_id, "; $query1 .="'".uniqid(rand())."', "; $query .= "last_login, "; $query1 .="'".time()."', "; $query = substr($query, 0, strlen($query)-2); $query .= ") ".substr($query1, 0, strlen($query1)-2).")"; $query = parse_query($query); mysql_db_query("renals", $query, $database); //4 echo("

You have succesfully registered

"); } else{ /*====================== USERS FORM =======================================*/ echo("RenalService.com does not collect personal identifying information from its clients without their consent. Information that you provide in an online application, a survey, or other website feature is used only for the purposes stated in the description of that feature and will never be shared with or sold to the third party. Each time you log in to your RenalService.com account, you will be asked to enter your exclusive User Name and Password. This step ensures the security of your account by verifying your identity.

"); echo("

Please complete the following :

"); require("tables/clients.php3"); } require($pathinc."close.inc"); require($pathhtml."bottom.inc"); ?>