kpetsche20 Posted March 6, 2008 Share Posted March 6, 2008 I am making a couponscript similar to http://www.simplesavingsnow.com Need a way to keep track of how many times a specific coupon was printed out. Any help Quote Link to comment Share on other sites More sharing options...
amites Posted March 6, 2008 Share Posted March 6, 2008 you could track page loads easily enough, are you re-using the same bar-code for the various coupons? if so good luck, any one person could print up 1 or 100 might be able to track that with javascript but getting the information back would be a whole nother thing... Quote Link to comment Share on other sites More sharing options...
maexus Posted March 6, 2008 Share Posted March 6, 2008 No real way of doing this. JS can be disabled and PHP is server side only. Quote Link to comment Share on other sites More sharing options...
deadonarrival Posted March 7, 2008 Share Posted March 7, 2008 As said, make a seperate barcode for each coupon - there are classes/functions to be found on google to do it for you.. no idea about how good they are but worth a go. Otherwise a seperate identifier code for each one - print a coupon id and only let it be used once. Once the user has the PHP page you have no guaranteed way of knowing what they'll do with it. Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted March 7, 2008 Share Posted March 7, 2008 or you could have a "click here to print this" and that would like to print.php?id=blah and you would use a counter to store how many times that has been uploaded. Quote Link to comment Share on other sites More sharing options...
JasonO Posted March 7, 2008 Share Posted March 7, 2008 What if I tell it to print 5 copies. You would have only clicked the button once, yet 5 would have been printed off. The only way to solve this as far as I can see, is what others have suggested. A unique barcode for each coupon. Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted March 7, 2008 Share Posted March 7, 2008 like the others said. There is simply no way (that we knwo of) to do this. Lets say you do unique bar codes... a few problems arise... I could just print off 5 of that 1 unique coupon you gave me. Plus, nothing stops people from putting it in a copy machine and making a million more. And what are the coupons for? If they will be using these coupons at a walmart or soemthing... then its not feasable to send walmart tens of thousands of bar codes. Quote Link to comment Share on other sites More sharing options...
deadonarrival Posted March 7, 2008 Share Posted March 7, 2008 Why? They already probably have several million, and use barcodes for their own coupons... It's entirely possible to just add a table to the recipients database to check against. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.