Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!



On Thu, Jul 31, 2008 at 3:04 PM, Boyd, Todd M. <tmboyd1@xxxxxxxx> wrote:
-----Original Message-----
From: Micah Gersten [mailto:micah@xxxxxxxxxxx]
Sent: Thursday, July 31, 2008 1:59 PM
To: PHP General list
Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

What I usually do is default to the most common country and show the
associated states.
You can change the states if they change the country.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Andrew Ballard wrote:
On Thu, Jul 31, 2008 at 12:40 PM, Rahul S. Johari
<sleepwalker@xxxxxxxxxxxxxxxx> wrote:

Ave,

What I have is two Select (Drop-Down) lists (State & County) and I'm
populating them from a mySQL table. What I want is when the user
selects the
State from the State List, the County List should only pull out
counties
associated with that State.

[snip]

This is a usability issue rather than a code issue, but wouldn't you
want that to be the other way around? (ie, select the country from a
list and it populates the state list with
states/provinces/territories/adminstrative disticts/etc. that belong
to that country?) I know the order is "backward" from how one
typically writes an address on paper, but otherwise your state list
will be HUGE and often your country list would only have one value
after the user selects a state.

*cough*

...pretty sure he wrote "county", guys. ;)


Todd Boyd
Web Programmer


Oops. Sure did. My mistake. I'm so used to dealing with country lists
my eyes glossed right over the word 'county'. :-)

Andrew
.



Relevant Pages

  • Re: My only near-negative
    ... What has this to do with your insistence that I abide by rules of a country that I am not abiding in? ... No dictionary of mine lists it. ... It does not have a definition for whittering. ... Why would you suppose that I was denying being aware of "antiques trade" as an expression? ...
    (alt.marketing.online.ebay)
  • Re: Using a form entry to update an existing record in a table
    ... Your lists are based on table, ... my problem is not to add a new country if it is not in the list. ... > add Africa from another combo to ... > the region field in the Malawi record in the tblCountry. ...
    (microsoft.public.access.formscoding)
  • Re: Dynamic Menus in Lists
    ... you've hit the essence and spotted the possible problem (duplicate ... I tend to use two different lists myself but this ... > list would contain a country and state columns. ... You would use Web Part Connections to filter ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Who will be the next to turn NC State down
    ... lists for the forseeable future. ... Your coach took you to the tourney 5 times, you took a run at your ... your most hated rival is UNC ... "There is nothing patriotic about hating your country, ...
    (rec.sport.football.college)
  • Re: Dynamic Menus in Lists
    ... What Mike is referring to is the ability to connect Web Parts. ... list would contain a country and state columns. ... The approach I would take is to create two custom lists. ... You would use Web Part Connections to filter the ...
    (microsoft.public.sharepoint.windowsservices)