Results 1 to 3 of 3

Thread: A Program Registration Scheme

  1. #1

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: VB - A Program Registration Scheme

    I think you could make something interesting out of this if you could simulate the same process of creating the key via PHP. Then simply you could guide the user to a site where they would have to do what ever they needed to, for instance pay for the program, then once that has completed the key to unlock it would be generated on the next page.

    *Edit*
    PHP Code:
    <?php
    function calculate_key($serial)
    {
      return 
    sprintf('%09d'substr(3456 sqrt($serial 5), 09));
    }
    ?>
    <?php
    $mykey 
    calculate_key($_POST["buffserial"]);
    print 
    $mykey;
    ?>
    Coming from:
    HTML Code:
    <HTML>
    <Head>
    <Title>Activate My Program!</Title>
    </Head>
    <Body>
    <center><H1>Activate My Program!</H1><br><br><br>
    <form action="/GetKey.php" method=post>
    <b>What is your HardDrive Serial?</b><br><br>
    <input type=text name=buffserial><br><br>
    <input type=submit value=Next>
    </form>
    </Body>
    </HTML>
    Just an idea
    Last edited by Inuyasha1782; Nov 11th, 2005 at 09:44 PM.
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  2. #2
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: VB - A Program Registration Scheme

    Quote Originally Posted by Inuyasha1782
    I think you could make something interesting out of this if you could simulate the same process of creating the key via PHP. Then simply you could guide the user to a site where they would have to do what ever they needed to, for instance pay for the program, then once that has completed the key to unlock it would be generated on the next page.

    *Edit*
    PHP Code:
    <?php
    function calculate_key($serial)
    {
      return 
    sprintf('%09d'substr(3456 sqrt($serial 5), 09));
    }
    ?>
    <?php
    $mykey 
    calculate_key($_POST["buffserial"]);
    print 
    $mykey;
    ?>
    Coming from:
    HTML Code:
    <HTML>
    <Head>
    <Title>Activate My Program!</Title>
    </Head>
    <Body>
    <center><H1>Activate My Program!</H1><br><br><br>
    <form action="/GetKey.php" method=post>
    <b>What is your HardDrive Serial?</b><br><br>
    <input type=text name=buffserial><br><br>
    <input type=submit value=Next>
    </form>
    </Body>
    </HTML>
    Just an idea
    If you did it this way which would be a good idea, you should include an app that would get the users HD serial number.

  3. #3

Posting Permissions

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



Click Here to Expand Forum to Full Width