MyBB Community Forums

Full Version: Check registration field from database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello mybb users.

I figured out how to add another field for registration, but what i'm trying to do is a little bit different.

I'm trying to make it so in the registration there is another required field where people enter in an ID "number" code.

So basically I have a list of ID codes in my database, and mybb reads from the list and if there is a match then it will allow them to create the account. However, if the ID number they entered does not show up in the database, their registration will be rejected.

How would I go about doing this? (how would I create the mysql database table and read from it, etc.)

Thanks!
Oh and also each ID # can only be used once.