I'm creating a form with 2 fields - a calendar and an option of 2 product items. The URL that this then goes to needs to changed based on what the user has selected in the form. How would I do this? This is the url that they go to:
https://example.com/reserve/?date=2018-12-24&item_id=229&popup=1
The items that need to be variable are:
date=2018-12-24 and item_id=229
I found good options for the item_id but am stuck with inputting the date format, too.
This is an example of my current form, that obviously doesn't work quite right:
<form method="get" action="http://example.com/url1">
<input type="date" name="bday">
<select name="_" onchange="this.form.action=this.value">
<option value="http://example.com/url1">Item 1</option>
<option value="http://example.com/url2">Item 2</option>
</select>
<input type="submit" value="Submit" />
</form>