I have a problem with this script
Not work for a register to my cabal !Code:<style> body, table, td, tr, div { font-family: Verdana, Arial, Helvetica, sans-serif, Impact; color:#ffffff; font-size:9pt; text-decoration:none; line-height:18px; }> </style> <?php // Config // Title echo '<title>CABAL Online Register</title>'; // MSSQL server connection details // Database server define('DB_ADDR','192.168.2.1'); // Database login define('DB_USER','sa'); // Database password define('DB_PASS','cabal1234'); // In case you have a different db names define('DB_ACC','ACCOUNT'); define('DB_GAM','GAMEDB'); $num_acc=0; $num_cha=0; $num_onl=0; echo '<div align="center">'; echo '<p style="font-size:24px;font-weight:bold">CABAL Online Account Registration</p>'; echo '<p>Login ID and Password must be at least a minimum of 6 characters, letters and/or numbers only.</p>'; echo '<form method="post" action="'.$_PHP['self'].'">'; echo '<table cellspacing="4" cellpadding="0" border="0">'; echo '<tr><td align="right">Login ID: </td><td><input type="text" name="uname" class="editbox"></td></tr>'; echo '<tr><td align="right">Password: </td><td><input type="password" name="pass" class="editbox"></td></tr>'; echo '<tr><td align="right">Confirm Password: </td><td><input type="password" name="pass2" class="editbox"></td></tr>'; echo '<tr><td colspan="2" align="center"><input type="submit" value="Register" class="button"></td></tr><br \>'; echo '</table>'; echo '</form>'; echo '<p>Registered accounts: <span style="font-size:16px;font-weight:bold">'.$num_acc.'</span> | Characters created: <span style="font-size:16px;font-weight:bold">'.$num_cha.'</span></p>'; $uid=''; $pass=''; $failed=false; if (isset($_POST['uname'])) { if (!ctype_alnum($_POST['uname']) || strlen($_POST['uname'])<6) { $failed=true; echo '<p class="errortext">Invalid username. Minimum of 6 characters, letters and numbers only.</p> '; } else { $uid=$_POST['uname']; } } if (isset($_POST['pass'])) { if (!ctype_alnum($_POST['pass']) || strlen($_POST['pass'])<6) { $failed=true; echo '<p class="errortext">Invalid password. Minimum of 6 characters, letters and numbers only.</p> '; } else { $pass=$_POST['pass']; } } if (isset($_POST['pass2'])) { if (!ctype_alnum($_POST['pass2'])) { $failed=true; } else { if ($_POST['pass2']!=$_POST['pass']) { $failed=true; echo '<p class="errortext">Both password fields do not match.</p> '; } } } if ($failed==true) { echo '<p class="errortext">Account Registration Failed.</p> '; } else { if ($uid!='' && $pass!='') { if ($r==false) { echo '<p class="errortext">Something went wrong.</p>'; } else { echo '<p class="goodtext">Account created successfully.</p>'; } } else { echo '<p class="errortext">Login ID has been used.</p> '; } } echo '</div>'; ?>
Cabal server is online put the password and usermane click register and not work
Say
Code:Something went wrong.
Please help me![]()



Reply With Quote

