I'm trying to take an entry from a form then send this entery via a webhook link.
<form onsubmit="redirect()">
<input type="text" id="firstName" name="First name" required />
<button id="button">click</button>
</form>
then
<script>
finFirst = document.getElementById('firstName').value
function redirect() {
location.href = `https://myblahblahhook.com/webhook-test/my-form?first=${finFirst}`;
}
</script>
If I enter Mark as a username I will get the following:
http://127.0.0.1:5555/mysql-test/index.html?username=Mark
instead of
https://myblahblahhook.com/webhook-test/my-form?first=Mark
I apprecaite your help!! Thanks
Baraa