Invitation code limit

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jeronimo
Forum Newbie
Posts: 1
Joined: Fri Feb 24, 2012 7:16 am

Invitation code limit

Post by Jeronimo »

I would like to setup a registration form where people would need to type in a secret code in order to register. This I know how to do but how about if I want to limit the number of registrations made with a single secret code, how would I accomplish this?

Many thanks.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Invitation code limit

Post by Celauran »

Store the valid codes in a database table along with a column to keep track of their use?
Post Reply