![][1]
We have a hidden counter. The number on the counter increases, as people bid. One has to pay, to see the recent number on the counter. If it's 10, 20, 30... etc, you win.
You pay $1, and let's say the counter reads 7. If it were 10, you would get $5. So, one in every ten bidder wins. If you see that the counter reads 29, you need to be quick enough to be the next bidder, to get the $5 reward.
There are 5 different 'lotteries' with corresponding counters to choose from:
If you bid $1, you get $5 when you win.
If you bid $2, you get $10 when you win.
If you bid $3, you get $20 when you win.
If you bid $4, you get $30 when you win.
If you bid $5, you get $40 when you win.
An additional lottery for those who doesn't feel lucky:
If you bid $10, you get $15 when you win. (One in every two bidders win)
An nickname will be used to identify each bidder. So we don't need a complex registration script.
Suppose that the user decides to bid $3. He/she's taken to the Paypal page to make the payment. Once the payment is completed, he/she's taken to the corresponding counter to she if he/she's the winner. If not, he/she's free to place as many bids as he/she likes. If he/she is the winner, he/she'll be asked his/her nickname, e-mail address along with his/her paypal account id. The winner and admin will also be notified via e-mail. Winner will be credited the corresponding amount the next day. (Somehow we need to check the session id to prevent a fraudulent activity such as reaching the result page without making the payment)
Although there's no registration, we still need a simple database structure to keep user data. The winners' nicknames, e-mail addresses and the amount they have won will be saved to the database, and the winners will be listed on the homepage.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
You can either use PHP or ASP (MySql or SQL) databases. You're not responsible for the design as i will provide the pages in PSD format which i'll expect you to create the HTML code with.