Where is the question? You continue to say what the form will do but you don't say a question? lolIf I create a form
if(mysql_num_rows(mysql_query("SELECT `key` FROM `betab` WHERE `key` = '".$_POST["key"]."'")) > 0) {
// continue the form or w/e
} else { // error message here }
<form method="POST">
<input type="text" name="key" placeholder="The key here!" maxlength="5" /> <!-- add this line if you don't already have it, and if you do have it then change to the name to "key"! -->
</form>
ALTER TABLE `betab`
ADD COLUMN `key` VARCHAR(5) NOT NULL;