Using javascript, I'm trying to do the following. I'll boil this down into it's simplest version.
I'd like to pass a variable from a text field to a URL, and have the URL be visited when the form is submitted.
- user enters a number into a text input field "123"
- user clicks the submit button
- Browser redirects to http://url.com/?myVariable=123 on click
The other question did not solve my problem because it didn't send a user-inputted variable.
Thank you.