Thread: HTML / PHP Help
View Single Post
Old 09-18-2021, 04:58 PM  
longsack
Confirmed User
 
longsack's Avatar
 
Join Date: Aug 2005
Posts: 32
Quote:
Originally Posted by sarettah View Post
I usually accomplish what you are describing by using a select (dropdown list) and a text field next to each other so that the user can pick from the dropdown or enter a new value.

I think that is what you are describing.

Something like this:

<b>Select Name:</b>
<select name="name_select">
<option></option>
<option>name1</option>
<option>name2</option>
</select> - OR -
<b>Enter name:</b><input type=text name=name2use id=name2use value="" size=50 maxlength=254>

I also use some javascript tricks so that if they do the select then the text field is disabled and vice versa.

.

This is a nice find.
longsack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote