Free Clickbank Link Generator Script
Hello everyone.
Welcome to another newsletter/article type thing! It’s been a while since I wrote and for that I apologize, it’s been a very hectic couple of weeks what with one thing and another but I’m back on track and that means I can write another newsletter.
To be honest I was struggling to come up with a subject, that was until a friend of mine, Randy Smith, sent me an message asking me if I could fix his broken affiliate page. Randy was using a script that generated affiliate links for his clickbank affiliates, they entered their username, clicked on submit and then it showed them custom links with thier affiliate name included….
Well, that’s what it was supposed to do. To put it blunty, the script was rubbish - it’s just didn’t work!
So instead of playing around with someone elses code I decicded to make my own for Randy. It’s dead easy to do and only takes a few minutes. I had Randy up and running in no time, then he told me I should distribute it, so here I am!
Before I show you how to use it and give you a download link, take a look at what it does:
http://www.elpassoblog.com/affiliates.html
It’s dead simple, the script takes the affiliate ID from the from, then repeats the ID in the links to personalize them. The demo above is just a quick example using one of my own products - please don’t use the links generated in the demo to promote the Boomerang List Builder as the product isn’t sold via clickbank so you won’t get a commission! (The affiliate program will be coming soon, stay tuned!)
I’ve made the page very plain so that they can easily be integrated with your existing website. The script is free to download, all I ask is that you leave the footer link back to this page intact! You can change the text, or the table colours of the footer link but please do leave the text as it is.
Click Here To Download The Script >>
How To Use It!
After you have downloaded you will see 2 files, affiliates.html and affiliates.php
Both files can be fully customized in your favourite editor. (Dreamweaver, Frontpage etc.)
The HTML file contains a web form that collects the UserID and the PHP page displays the dynamic links.
All you need to do is run your favourite find/replace software, or if you want to do it manually you can. And replace:
boomlist
With:
Your own clickbank ID. - Or in other words, the ID of the product you are selling.
When done, upload both files to your server and direct your customer to the HTML file - done!
That’s it, your script will now work. If you want to add any more affiliate resources to the PHP page, simply use mine as a starting point and add the following PHP code wherever you want the users clickbank ID to be displayed:
<?php echo $_GET["clickbankID"]; ?>
So a standard link on the PHP page would look like this:
![]()
I think that just about covers everything, let me know if you have any questions or suggestions. It’s probably best to post your question as a comment, then when I answer it’s visible to other users as well.
Cheers!
Dan
















