homepage Welcome to WebmasterWorld Guest from 54.166.53.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
One Time Registration Code
One Time Registration Code
e1412



 
Msg#: 4685535 posted 3:30 am on Jul 7, 2014 (gmt 0)

I am trying to create an authentication for a form.

Its like an application. If you don't enter a code provided by me, you can't access the form.
Please how do i do that ?

Challenges;
1. If code is not associated to a user ID, code should still remain valid.
2. Code should work only once
3. Two or more users entering code at same time (one must be invalid).

 

penders

WebmasterWorld Senior Member penders us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



 
Msg#: 4685535 posted 5:36 pm on Jul 7, 2014 (gmt 0)

...you can't access the form.


Presumably you mean the user will not be able to submit the form successfully? (They would need to "access the form" wouldn't they?)

I'm not sure which bit you are stuck on?

Assuming one code for one user, the basic principle could be something like:

1. You issue a unique code to a particular user (and tell the user somehow by email, sms, phone, etc.) The code is assigned to the user record in the database.

2. User enters code and submits form.

3. If code matches code in users record then success and remove code from database. Otherwise reject.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved