A simple javascript/php autosurf application as per the attachment.
The delivered code must closely follow the supplied pseudo-code.
No graphic design or layout is needed, I only need you to create the code, but it must be well written, structured, commented and with meaning variable and field names. PHP code must be protected against sql insertion attacks.
There are no admin screens, no registration, no user interface.