How to redirect to a different page depending on an input or selection.