Creating a form with numerous text fields, some of which require numerical input. The main goal is to have users enter a tracking number, order number, or any other type of number that, when submitted, will open a new URL in a separate window with the specific number appended to it. In the case of an order number being entered, I'd like the form to redirect to: website.com/ordernumberfromform
However, I've encountered a challenge where I need the input to be formatted as simply website.com/ordernumberfromforminput. No id= or additional elements, just taking the value and adding it after the /. Unlike traditional validation checks, the URL will provide an error if the number is invalid. Simply inserting the text field's value at the end of the URL.
Has anyone faced a similar issue? It seems unnecessary to use JavaScript or server-side scripting for this task, making it more complicated than needed. Despite researching extensively, I am unable to find a solution. Any guidance is appreciated.
Shown below is a snippet of my code:
<div id="orderidfield">
<form action="https://www.website.com/" method="get" target="_blank">
<input type="search" name="orderNumber"/>
<!!-- Looking to have the order number posted to the URL (www.url.com/ordernumberthatisentered) without additional attributes, but struggling to achieve this due to the inclusion of an id and = sign -->
</form>
</div>