I have created form fields with a button.
I need the url of the button to change depending on the data entered in the Last name field. The Booking reference field does not effect the url
Example: User enters "John" in the last name field the button should have the url: http://www.john.com
Example: User enters "Henry" in the last name field the button should have the url: http://www.henry.com
<form>
<p style="margin-bottom: -10px; font-size: 12px;">*Required Fields</p><br>
<input type="text" placeholder="Last name *" name="lastname">
<input type="text" placeholder="Booking Reference *" name="ref">
<a href="http://localhost:8888/ek/booking/" class="btn btn-info" role="button">Retrieve booking</a>
</form>