A box where if you type in the right word you will be redirected to another page
I'm working on website that will have riddles on it. It is kind of a game. If people find out the answer, they should be able to write it down in a box and press enter. If the answer was correct, they should be redirected to a new page with the next riddle. If the answer was wrong, either nothing should happen or it should say "Your answer was wrong, please try again" or something simular.
Any idea on how I achieve this?