Script that will load winner page for first person to enter the correct code

Welcome to the "General Paid Requests" forum. Post in this forum to
hire someone for help on a coding project that does NOT involve a Dynamic
Drive script.

Your request will be visible to all members on DD forums. Dynamic
Drive is not responsible for the outcome of any of the requests posted here.
Use your best judgement when picking a coder.

How much to pay for a coder is between you (client) and the coder,
though obviously be fair and realistic at the same time.

Once you've found a coder or no longer need one, is please update your thread's "prefix" to to "resolved".
To do this, click on the "Edit" button under the first post of the thread, then the "Go
Advanced" button.

This forum should only be used to post non DD scripts related paid
requests. The later belong in the
sibling forum
instead.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Script that will load winner page for first person to enter the correct code

1) I need a script that will load an html page once only, IF the correct keycodes are entered. This is similar to the Konami code BUT I need a conditionally execution. ONCE the correct keycode has been found by ONE person, the script will no longer work and an alternate page will load. This means ONCE for the first person finding the sequence, not once per user. Think of it as a competition where there is only one winner.

For instance - using Konami.js from http://www.snaptortoise.com/konami-js (code way off, I'm not a js person, but just to give you idea ...)
<script type="text/javascript" src="konami.js"></script>
** IF konami condition met by one person only
** konami.load("first.html")
** Else
** konami.load("toolate.html")
** endif
**

It may require js/php, but want to keep it as simple as possible. No fancy scripting - just something robust and working.

2) Payment will be made via PAYPAL ($20 or you quote) - as soon as code tested (IE8, Firefox & Safari).

I should be able to write this for you very quickly, but there is one complication:
Do you want this to always load for the first user or only the first time?
It will be easy to do it the first time and a little more complex to load the page repeatedly for that same user.

Also, this will need to be PHP or a serverside language because Javascript can't save anything-- it won't know if someone else has already won. (Additionally, JS isn't secure, but PHP will be, so no one can cheat).

Contact me through the link on my signature and I can do this for you quickly, for the price you quoted. But let me know if it is required that the user can reload/revisit the page after he has won.