Forum Moderators: coopster

Message Too Old, No Replies

Adding a Reg Key of Sorts

         

Diceman39

5:49 pm on Sep 3, 2008 (gmt 0)

10+ Year Member



Hello folks,
I have a registration form (php) which obviously allows users to access my site, currently anyone has the ability to signup an run a muck on my pages. What I would like to do is add a field on the registration page where the would be member must enter a combination of letters an numbers or the form will not process, a reg key so to speak.

Im not looking for anything fancy like a random number generator, I just need a key of set numbers which I can e-mail to the would be member should I decide to allow them site access.

If anyone could show me how to do this I would greatly appreciate it.

Thank you,
Brandon

eelixduppy

5:49 am on Sep 15, 2008 (gmt 0)



Well I would create a table in a database. When you "activate" a code, it places it in the database. Then when the user submits their registration form with this code, it checks to see if it's in the database table, and if it is then it lets the rest of the registration complete, but then it deletes the number from the table so that it cannot be used again.

Anyway, see if you can implement that yourself. If you need help along the way, don't be shy, just ask. :)

and Welcome to WebmasterWorld!