Click here to Skip to main content
14,544,311 members
Rate this:
Please Sign up or sign in to vote.
I run a retail show and I give away $2 off coupons by email, but I am finding that people are printing about 25 of them and handing them out in the line to buy your tickets. I am loosing a lot of money. I would like to put a barcode on the email that they can print off and only use ONCE. From thinking about I thought that you could have a HTML code that made a random barcode and make it put a entry into a SQL, Filemaker or MS Access database and at the ticket booth have them scan it and if its been looked at more then once then reject it.

Thanks,

Davis Ladouceur
Davis@davisladouceur.com
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

All you need is to generate a unique number (whether it's random or not is irrelevant), which is printed as a barcode on your coupons. Then when the coupon is scanned (presumably by the retailer) it will somehow keep a record of that identifying number and reject any other coupons with the same number. The generation of random or sequential numbers is a fairly trivial piece of coding and barcodes can be generated by barcode fonts (Google will find them). The main issue is how to tie your numbering system in with the system that scans them and hands out the money.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100