I have a HTML page with a form.
The form submits their address to my php page which has $_GET['address'];
I want to give users the option of selecting from a drop down box OR entering their address in a keyword box for the address part. But I want it to still submit as the same variable to my php page.
So I basically want a drop down box, where one of the options is an input box…or similar functionality as that…
Is this possible with HTML? or is there a better way to do this?
This is not possible solely with HTML, as it would submit the values of both the drop down box and the input box. If both fields were named “address” it would submit to your php page and be held in an array. In my opinion, some javascript on your HTML page could hide the input box if that option were not selected.