This is probably very easy, but i just cant seem to find a good answer for myself.
I have this simple HTML Form in my ruby on rails.
<form target="_blank" action="https://api.xxx.xxx/campaign_id=5011?randomtext">
<label for="campaign_id">ID:</label>
<input type="text" id="campaign_id" name="campaign_id"><br>
<input type="submit" value="Submit">
</form>
Looks like this https://i.stack.imgur.com/aEBN5.jpg
What i need:
So user can enter a number and when submit is cliked then the number in the (Form action) URL, in this example the "5011" is replaced with the number given by the user.
So the URL is "https://api.xxx.xxx/campaign_id=5011?randomtext"
when a new number is given and submited. lets use 6050.
Then when submit is clicked, URL changes to "https://api.xxx.xxx/campaign_id=6050?randomtext"