Hey, my name is Arnas and I'm a web developer from Ireland. I have fluent English and previous experience in PHP, MYSQL, HTML, JS and CSS.
I don't have experience with Wordpress, however I can easily make this code for you.
When you are passing variables to a URL this is using PHP and not JS, so you need PHP code to take it in and then you can proceed to work with it.
Feel free to send me a message as I'm available to begin ASAP and do not undertake work I can't complete!