HowTo php ticket booking for raffle between friends

hi to all,

i was started building a php script for manage a simple site for ticket booking raffle/lottery between friends, only i want is to have the posibility of reservation of tickets, and the tickets always will be only 100.

the method used for reserve is only by putting an email (hidden for visitors) and confirm it (lock the ticket) by clicking some link in the inbox mail.

the big cuestion here is, i’m a newbie and i wish to ask first is someone have some similar script than i can use for modify, cuz star from zero for me will be a really hard to do.:blush:

i was searched a lot in google, hotscripts, sourceforge and in the forum but with no luck =(

i hope can have some similar script.

thanks a lot!

You’re looking for a basic authentication?

Generate a random string (throw some hashes together or something, doesnt really matter what… $pass = md5(time()).sha1(time());
Write that string into your database as a field named confirm.
Write out the email and send it to the user with the link and your big confirm string on the end as a get variable.
///new page
When the user clicks the link, it’ll load a new page; check the database for the matching string; erase the string, and lock the ticket.

yea, basic authentication…

it will be very nice if when the users clicks on submit, shows a little form with the email field and field for name and phone.

but ok ok, what will be the cost of it ?

thanks