How to pass parameters filled in a form to an external url?

I have a form on my page where the user must fill out:
Name = #firstname
Phone = #phone
Email = #email

After clicking the “Submit” button, it is redirected to an External URL. My question is, how do I pass the parameters that the user filled in the form to this external url? It should look like this:

external_url.com/?name=#firstname&phonenumber=#phone&email=#email

Even reading the Velo documentation about wixlocation I was unable to implement code that worked in my form, could anyone help? :frowning:

You’d direct to a new URL with https://www.wix.com/velo/reference/wix-location-frontend/to and need to make sure the URL is in the correct format: Query string - Wikipedia

You can construct query strings and make sure they’re in the right format with URL - Web APIs | MDN and pass it URLSearchParams - Web APIs | MDN to get your query string defined correctly.