php and mysql are what you need, i dont know the mysql code, but itl be very easy to implament into your current temp, as long as you rename your pages to ....php as apposed to ....html.
pm rj for the mysql code he used on the raffle.
all the info would have to be stored in a db though, but its very easy.
take the php and mysql tuts at tizag.com .
(dont worry, theyre quick and easy tuts)