Ich gebe auf der Regi page meine Daten an und klicke auf Erstellen.
Dann dauert es 5 sekunden und ich werde auf meine Hauptseite geleitet, ohne das der Acc erstellt wird!
Also ich hab in meiner Register den Code :
Code:
<font color="#FFFFF" >
<html>
<head>
<body background="register.jpg" />
<title>Registration</title>
</head>
<body>
<center>
<h2 style="font-weight: normal; margin-top: 5px; margin-bottom: 0px;">Register Ingame</h2><br>
</center>
<form action="index.php?site=register" method="post">
<table width="258" border="0" align="center">
<tr>
<td width="107" height="20">
<font color="white">
<font size="2">Account:</font>
</td>
<td width="141">
<label><input name="user" id="user" size ="15" class="h4" name="user" type="text"/></label>
</td>
</tr>
<tr>
<td height="25">
<font color="white">
<font size="2">Passwort:</font>
</td>
<td>
<input name="pass1" id="pass1" size ="15" class="h4" name="user" type="password"/>
</td>
</tr>
<tr>
<td height="24">
<font color="white">
<font size="2">Wdh. Passwort:</font>
</td>
<td>
<input name="pass2" id="pass2" size ="15" class="h4" name="user" type="password"/>
</td>
</tr>
</table>
<p align="center">
<input name="submit" type="submit" class="h4" value="Account erstellen" />
</p>
</form>
<font color="white">
<div align="center">
<?php
if(isset($_POST['submit'])) {
require('config.php');
if(!$_POST['user'] || !$_POST['pass1'] || !$_POST['pass2']) {
die('<strong>Du musst alle Felder ausfüllen!<BR></strong>');
} else {
$user = $_POST['user'];
$pass = md5('kikugalanet' .$_POST['pass1']. '');
}
$pass2 = md5('kikugalanet' .$_POST['pass2']. '');
if(exi($user) != '0') {
die("Username: '".$user."' is in use!");
}
if($pass != $pass2) {
die('<strong>Passwörter stimmen nicht überein!</strong>');
}
$nww = nw($user, $pass);
if ($nww){
echo("<p class='b01'><strong>Registration erfolgreich!</strong></p>");
} else {
echo("<p class='b01'><strong>Registration fehlgeschlagen!</strong></p>");
}
}
?>
</div>
</body>
</html>
Code:
<?php $sHost = '[COLOR="Red"]localhost[/COLOR]'; // Default: 127.0.0.1 EN:Host/IP FR:HOST/IP $sLogin = 'root'; // Default: root EN:Login FR: Identifiant $sPass = '****'; // Default: EN:Password FR: Mot de passe $sDatabase = 'flyff3'; // Default: flyff EN:Database Name FR: Nom de la base de donnée $myConnect = mysql_connect( $sHost, $sLogin, $sPass ); $myDatabase = mysql_select_db( $sDatabase, $myConnect ); ?>
Ich benutze die Fame - Templates!
Bitte um Hilfe!
Hier hab ich noch ein Video um dieses Problem :






