I need to create a form on my site where users enter a code and based on that code they're redirected to another page. Doing it through a database would be more secure but I wouldn't mind if the logic was handled on the form itself.
So, here's an example of what I mean:
Enter Code: (Box here)
Form searches through list of potential answers( s5d11, wy4sd, lk123, etc.), if it finds a match it redirects to a specific page for each code, if not it gives an error message that the code entered was wrong.