How to redirect to a page based on input entered

Hi, my client wants to direct the user to a shop page based on a certain zip code which will be accepted via an input field. Can you please help with how I could go about this?