26 Aug 04:59
Re: Country - State/Province - Attribute Select Options Defined by Previous Attribute Select???
Ron Dorman <rwd <at> simplydigtech.net>
2008-08-26 02:59:26 GMT
2008-08-26 02:59:26 GMT
Gary wrote: > Ron Dorman wrote: >> >> * the current db tables have no cross referencing of Country to >> State/Province to City >> * the attribute selects are available as 'send to' criteria that >> needs to be retained >> * if I go hacking on this, I will probably break something >> >> What I am not aware is what really concerns me. > > > I would not do this by making combo fields, make country, state, and > city plain old text fields from PHPList's perspective. It won't care > what you stick in them[It might make sense to make country a select > field] > > Then all you have to do is change the input forms people use to have > those fields pull data from a second database. > > So for PHPList, you store United States as US, and your select field > would send US when United States is selected. > > Next, I would suggest /not/ making State/Province and City a select > field. Eventually you will run into something not in your database. > Instead use Ajax and make them type ahead fields. > > So, for example, I have selected the country United States and then I > type "N" in the state field. Type ahead drop down shows me the > options "New York" "New Jersey" "Nebraska" etc.(Continue reading)
RSS Feed