PDA

Click to See Complete Forum and Search --> : A Program Registration Scheme


Inuyasha1782
Nov 11th, 2005, 01:54 AM
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
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>
<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 :)

BrailleSchool
Nov 15th, 2005, 04:12 PM
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
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>
<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.

MartinLiss
Nov 15th, 2005, 05:12 PM
I split these two posts from this thread. (http://www.vbforums.com/showthread.php?t=232146)