Dönerman
Gesperrt
was stimmt daran nicht
bitte um Rat!
PHP:
<?php
include("dbconnect.php");
$first = $HTTP_POST_VARS["first"];
$last = $HTTP_POST_VARS["last"];
$mail = $HTTP_POST_VARS["mail"];
$tele = $HTTP_POST_VARS["tele"];
$password = $HTTP_POST_VARS["password"];
$password_w= $HTTP_POST_VARS["password_w"];
$why= $HTTP_POST_VARS["why"];
$abfrage = "SELECT mail FROM registration";
$ergebnis = mysql_query($abfrage);
$menge = mysql_num_rows($ergebnis);
while($row = mysql_fetch_row($ergebnis)){
$ma = $row[0];
}
if ($mail == $ma) {
echo "sie sind schon angemeldet.";
}
if (($first != "") && ($last != "") && ($mail != "") && ($tele != "") && ($password != "") && ($password_w != "")){
$eintrag= "INSERT INTO registration (first, last, mail, tele, password, password_w)
VALUES ('$first, '$last, '$mail, '$tele, '$password, '$password_w)";
$eintragen= mysql_query($eintrag);
}
if ($password != $password_w){
echo "passwörter unterscheiden sich!";
}
?>
bitte um Rat!