I have a project that I am looking to start soon.
I need to be able to generate unique PIN codes (lots of em) which will be distributed via flyers / "credit cards" to potential clients. The client then logs on to my site and puts the code in, which directs them to a purchase page for a downloadable product.
I've looked around at some shopping cart providers, and none seem to have this functionality out of the box, but some come close with an add on - instead of being able to provide serials to users, these shopping cart scripts send the code to the user once the downloadable product is bought, rendering the marketing idea useless.
So, I am contemplating writing up my own PHP script that accesses a SQL db full of PINs and relevant redirect addresses to the product page via a search query.
Can anyone offer me guidance to this solution? I just got O'Riely's php book that I am reading (have been working with php for years now but don't know how to code it myself yet), and I would greatly appreciate any suggestions!