<?php
if(isset($_GET["page"])) {
if($_GET["page"] == "2") {
$user = strtolower($_POST["user"]);
$email = $_POST["email"];
$email2 = $_POST["email2"];
$pw = md5($_POST["pw"]);
$pw2 = md5($_POST["pw2"]);
if(empty($user) || empty($email) || empty($email2) || empty($pw) || empty($pw2){
?><div id=\"text-wrapper\">Please fill out all the fields!, try again <a href=\"index.php\">back..</a></div><?php
}
if($email != $email2){
?>
<div id="php-wrapper">Youre emails do not match,please try again...<a href="register.php">back..</a>
<?php
}
if($pw != $pw2) {
?>
<div id="php-wrapper">Youre passwords do not match,please try again...<a href="register.php">back..</a>
<?php
} else {
$verbindung = mysql_connect("", "", "")
or die ("<-");
mysql_select_db("")
or die ("->");
$control = 0;
$abfrage = "SELECT user FROM login WHERE user = '$user'";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
$control++;
}
if($control != 0) {
?>
<div id="php-wrapper">Username is already taken...<a href="register.php">back..</a>
<?php
} else {
$eintrag = "INSERT INTO login
(user, passwort, email)
VALUES
('$user', '$pw', '$email')";
$eintragen = mysql_query($eintrag);
if($eintragen == true) {
?>
<div id="php-wrapper">You have sccesfully created an account, would you like to login?..<a href="index.php">login-page..</a>
<?php
} else {
?>
<div id="php-wrapper">An error was founded in the system, please try again..<a href="register.php">back..</a>
<?php
}
mysql_close($verbindung);
}
}
}
}
?>
es zeigt nicht mehr die seite aufeinmal an, kann mir wer helfen ?
auf der website ist wohl ein fehler steht da.
mfg kyle