Click to See Complete Forum and Search --> : Creating an online contest form


CTWorion
10-16-2007, 10:15 AM
I'd like to preface this by saying I'm not really a programmer, but I'd like to think I'm capable of manipulating some code to make this work.

I need to create a very simple little contest on a webpage. We are going to distribute a couple hundred alphanumeric codes, and we want those people to go to our website and enter in those codes to win a prize. We will already have chosen at random which of the codes will be the winner, and there is only one winner.

So when a person goes to the page, I want them to see a form with a text box in which to enter that code. That part I can do. It's everything after that I am lost on.

If someone enters a code that is not a winner, they should be redirected to a page that tells them they lost. If someone enters the code that's the winner, they should be redirected to a page that tells them they one, and gives them additional fields to fill out and submit to an email address so we can contact them and give them their prize.

Can anybody help me out or get me started, or maybe direct me to an online resource that might help?

Thanks.

scragar
10-16-2007, 11:26 AM
you'll either need a DB, or access to a directory that most people will be unable to access via the browser(keeping it secret is not exactly effect.