www.webdeveloper.com
Results 1 to 3 of 3

Thread: Registration with Pin

  1. #1
    Join Date
    Sep 2013
    Posts
    1

    Registration with Pin

    hello, please i want to create a registration form where user will be asked to enter pin before registration could take place, and the pin will have validation for like 5x. using php.. pls i need advice..

  2. #2
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    You could generate a pin like this:
    There is a small possibility of duplicate entries but if the PIN is used one then reset, that shouldn't be an issue.
    PHP Code:
        //Number of PINs to make
        
    $x 15;

        for(
    $i=0;$i<$x;$i++){
            
    $pin substr(sha1(microtime()),-5);
            
    sleep(1);
            echo 
    "{$pin}\n";
        } 

  3. #3
    Join Date
    Sep 2013
    Posts
    221
    Below is the link which may help you to come up with your answer.

    http://www.sourcecodester.com/tutori...-phpmysql.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles