$judet) $parola = $_POST['password']; $reparola = $_POST['repassword']; $agree = $_POST['agree']; // -----------------------------------Facem verificarile inainte de introducerea datelor in baza de date if (strpos($email, "@") == 0) $msg_mail = "Adresa de e-mail introdusa nu este valida."; $sqlVerificare = "SELECT email FROM mag_clienti WHERE email LIKE '%$email%'"; $resultVerificare = mysql_query($sqlVerificare)or die ("database connection impossible"); if (mysql_num_rows($resultVerificare) > 1) { $email = ""; $msg_mail = $msg_mail . " Exista deja un cont pe aceasta adresa de email."; } if ($judet == "Judet") $msg_judet = "Nu ai selectat judetul"; if (strlen($parola)<5) $msg_pass = "Parola este prea scurta."; if ($reparola<>$parola) $msg_repass = " Nu ai confirmat corect parola."; // ------------------------------------------Verificam termeni si conditii if ($agree <> "1") $msg_agree = "Bifeaza daca esti de acord cu termenii si conditiile elixir.ro"; if ($msg_mail == "" and $msg_pass == "" and $msg_judet == "" and $msg_repass == "" and $msg_agree == "") {echo "AAAAA"; $parola = md5($parola); $sql = "INSERT INTO mag_clienti (nume, prenume, email, telefon, adresa, localitate, judet, parola, regdate) VALUES ('$nume', '$prenume', '$email', '$telefon', '$adresa', '$localitate', '$judet', '$parola', '$dta')"; $result = mysql_query($sql)or die ("nothing inserted in database"); //include ("form_validate_account.php"); } else include ("inscriere_form.php"); } else include ("inscriere_form.php"); ?>