I made my account creation page using a lot of different templates.
The only problem I'm having is that the flag value that gets put into the account database is 4 instead of 44 which I read is what it needs to be for WOTLK.
Here's the code for the selection of account type:
Code:
<th>Account Type:</th><td align="center">
<select name="tbc" type="select">
<option value="8">TBC</option>
<option selected value="44">WOTLK</option>
</select></td>
The template didn't even have the option thing on it so I added it.
Here's the code for how it is used for the database:
Code:
$query = "INSERT INTO `accounts` (`login`,`password`,`lastip`, `email`, `flags`)
VALUES ('".mysql_real_escape_string($_POST['login'])."',
'".mysql_real_escape_string($_POST['password'][0])."',
'".$_SERVER['REMOTE_ADDR']."',
'".mysql_real_escape_string($_POST['email'])."',
'".mysql_real_escape_string($_POST['tbc'][0])."';
Before I added the options, ".mysql_real_escape_string($_POST['tbc'][0])." was just "8" so all account were tbc automatically.
So, why is it making "flag" equal to 4 instead of 44?