Commit 73782dae authored by Nico Schallehn's avatar Nico Schallehn

Debug

parent a3880a05
......@@ -13,7 +13,6 @@ $users = mysql_fetch_array($result);
if(isset($_POST['ok']))
{
var_dump($_POST);
if($_POST['ok'] == "Anmelden"){
$username = htmlentities($_POST['username']);
$passwort = htmlentities($_POST['pass']);
......@@ -43,6 +42,7 @@ if(isset($_POST['ok']))
}
else if($_POST['ok'] == "Registrieren")
{
var_dump($_POST);
$result = mysql_query("SELECT COUNT(*) AS anz FROM user WHERE name = '{$_POST['username']}'");
$user = mysql_fetch_array($result);
if($user['anz'] == 0 AND $_POST['username'] != "" AND $_POST['pass'] != ""){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment