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), 0, 9));
}
?>
<?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 :)
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), 0, 9));
}
?>
<?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.
Re: A Program Registration Scheme
I split these two posts from this thread.