Enter code into "input text box"


I’ve looked through the tutorials and can’t seem to find what I’m looking for…

I wan’t to allow a user to enter one of many codes into an “input text box” which can link to one of many pages each coresponding to a code.

Is there a tutorial I have missed or can someone help me???