I'm setting up a non-crappy-ebook Clickbank site and I 've got just about everything up and running except for the security script that they provide to protect the thank you page. I want to use the PHP script that they provide but they won't help me out with it at all for whatever reason.
I have only a limited amount of experience with PHP. So, I need a little help with it. What do I have to do with this script to get it to work?
- Do I have to put the <?php & ?> at the beginning and end?
- Where do I place the script at on the pages programming?
- Do I have to name the file .php?
- What else am I missing?
Here's the script they provide:
Thanks for any help guys. I greatly appreciate it. 
I have only a limited amount of experience with PHP. So, I need a little help with it. What do I have to do with this script to get it to work?
- Do I have to put the <?php & ?> at the beginning and end?
- Where do I place the script at on the pages programming?
- Do I have to name the file .php?
- What else am I missing?
Here's the script they provide:
PHP:
function cbValid()
{ $key='YOUR SECRET KEY';
$rcpt=$_REQUEST['cbreceipt'];
$time=$_REQUEST['time'];
$item=$_REQUEST['item'];
$cbpop=$_REQUEST['cbpop'];
$xxpop=sha1("$key|$rcpt|$time|$item");
$xxpop=strtoupper(substr($xxpop,0,8));
if ($cbpop==$xxpop) return 1;
else return 0;
}
