Flemli200
Mitglied
Könntet ihr euch den code mal anschaun und den fehler suchen... weiß nichmehr weiter!!
<?php
$name=$_POST['name'];
$passwort=$_POST['passwort'];
$email=$_POST['email'];
$GebDat=$_POST['Geburtsdatum'];
$AGB=$_POST['AGB'];
$php=".php";
$ordner="Benutzerdaten/";
$ordner_2="Daten/";
$html=".html";
// überprüfen ob die Felder Name, Passwort, Email und Geburtsdatum ausgefüllt sind!!
if ($name=="" OR $passwort=="" OR $email=="" OR $GebDat=="")
{
echo"
<html>
<body bgcolor='black' link='white' alink='white' vlink='white' text='white'>
<br>
<font face='Arial'>
<center>
<br><br>
<form action='Registration.php' method='post'>
<table border="0" cellpadding="1" cellspacing="1" summary="">
<tr>
<td></td>
<td><b>Bitte füllen sie alle Felder aus!!</b></td>
<td></td>
</tr>
<tr>
<td></td>
<td>Name: </td>
<td><input type='text' name='name' value=$name></td>
</tr>
<tr>
<td></td>
<td>Passwort:</td>
<td><input type='password' name='passwort' value=$passwort></td>
</tr>
<tr>
<td></td>
<td>Email:</td>
<td><input type='text' name='email' value=$email></td>
</tr>
<tr>
<td></td>
<td>Geburtsdatum:</td>
<td><input type='text' name='Geburtsdatum' value=$GebDat></td>
</tr>
<tr>
<td></td>
<td><input type="checkbox" name="AGB" value="" checked="checked" />Ich akzeptiere die <a href='Forenregeln.html'><b>AGB</b></a></td>
<td></td>
</tr>
<tr>
<td></td>
<td><input type='submit' value='Registrieren'></td>
<td></td>
</tr>
</table>
</center>
</form>
</font>
</body>
</html>
";
}
else{
// noch mehr code (Überflüssig funzt nämlich)
}
?>