Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Brinley] Drop down list with County by Country

Quote Reply
Re: [Brinley] Drop down list with County by Country In reply to
Hi,

The easiest way is to just add a list of the counties, and then use the Format_Select_Field() function available in the (free) plugin, ULTRAGlobals.

Code:
<%Plugins::ULTRAGlobals::Format_Select_Field($Test_Select,'Test_Select')%>
<select name="Test_Select">
<%loop select_loop%>
<option value="<%value%>" <%if selected%>selected="yes"<%endif%>><%name%></option>
<%endloop%>
</select>

Obviously add the new field, via Database > Links > Add Field. Setting something like this:

Form-Type: SELECT
Type: CHAR
Size: 255

Then enter you values in the box the "value" boxes, on this area.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Drop down list with County by Country Brinley 4240 Apr 19, 2008, 5:56 AM
Thread Re: [Brinley] Drop down list with County by Country
Andy 4162 Apr 19, 2008, 8:50 AM
Thread Re: [Andy] Drop down list with County by Country
Brinley 4152 Apr 19, 2008, 9:16 AM
Thread Re: [Brinley] Drop down list with County by Country
Brinley 4138 Apr 19, 2008, 10:17 AM
Post Re: [Brinley] Drop down list with County by Country
Andy 4137 Apr 19, 2008, 11:12 AM