How do I get this form input to be stored in a variable, that I can then use later - rather than being appended to the end of the URL?