BrowserHawk IQ now available! Click here for the full scoop!
Search:
How can I create a drop down list of all countries for a user to select from?
Created: 11/6/2002    Updated: 11/6/2002
Q   I have a need to dynamically modify my site to include a dropdown list of countries if CountryHawk determines the user is in a foreign country. I want to position the list so that the user’s country appears in the list based on the information provided by CountryHawk. How can I do this?

A   The CountryHawk GetSelectList method is designed to do exactly this. It automatically generates all the HTML you need to build the drop down list form field with all the countries (or optionally just the countries you want to list). You can choose a specific country to be highlighted by default, or by default CountryHawk will highlight the country the visitor is from.

For more details see the demo at http://www.cyscape.com/products/country/samples/ch_listbox.asp. This also includes the source. All this can be done with just a single line of code by calling the GetSelectList method!

Note that use of the GetSelectList method requires the Professional or Enterprise Edition of CountryHawk.

    FAQ Home  |  Search FAQ  |  Show New Items  |  Ask a FAQ  |  Notify Me  |  Most Popular     
 
 
Copyright © 1994-2020 cyScape, Inc. All Rights Reserved. ()
ASP, ASP.NET, ColdFusion MX, CFMX, JSP, PHP