How to add form submission into an URL and open it in a new tab

Issue

This Content is from Stack Overflow. Question asked by DownTownMan1337

im trying to make a simple page with a single form in which the value entered there would be added to a url and opened in a new tab.

here is an example of the page https://i.imgur.com/oWAoGpp.png

lets say the url that i wish to be opened is: https://myurl.com/taketo/

and the value submitted is: test123

when clicking submit a new tab opens taking you to: https://myurl.com/taketo/test123

Note: The form page URL and the URL That opens in a new tab (https://myurl.com/taketo/) are not the same domain.

I have no problem with the page/form itself but I can’t figure out the backend stuff.

Thanks for taking the time to read this.



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?