simple volunteer work....

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

Post Reply
HormonX
Forum Commoner
Posts: 50
Joined: Tue Dec 10, 2002 7:43 pm
Location: Toronto

simple volunteer work....

Post by HormonX »

AM not sure that anyone would be willing to help but i sure hope that someone would be kind enough and spare some valuble time to help me out. What i am looking for is very simple and i would do it by myself if i only know how.

I need a simple combo box. First combo box would have a list of countries upon selection of the county the second combo box would populate with the cities for that country. That's it.

I know that is a mixture of JS and PHP but my knowledge of JS is ... well none. I have tried to find a script that does this but all of them were in JS only.

Well i hope this helps,

Thank you

Greg
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you can use those 'JS' only versions, by just filling their data parts with the returned data from php/database.

we have talked about similar things before here.. so if you search around you might find some helpful bits. [devnet]+dropdown +dynamic[/devnet] I think may contain some of them..
Harlequin
Forum Commoner
Posts: 51
Joined: Tue Sep 21, 2004 10:51 am
Location: UK

Post by Harlequin »

HormonX

I spent a whole heap of time generating my drop-downs for options such as this and ended up with:

Cities: 1673
Counties: 146
Countries: 225

I doubt it's comprehensive but I'll be damned if you can actually find a resource for these things. Anyway, cutting to the chase here. I slapped these into a table and now just call out the entries in the table and populate a drop-down which means that I can manage the lists easily.

With regards to your specific issue though. I'm wondering if this could be achieved purely with PHP and MySQL because you could have a self referencing form that updates when a user selects say "Go" after a County and that then (through an IF statement) should be able to present the user with another drop-down for the Cities.

Problem though: you'd be there for an age categorising just a few hundred cities, never mind the list I have. Good look if you do go down that root.

So... Drop a line and let me know how you got on and if you want the lists just let me know what format and I'd be happy to share the code for the drop-downs also as I simply use an include statement for the options fields that references a page that executes the query (gets more convoluted I'm sure).

I'm sure I'll think of something you could do in return, a site review maybe... a beer or three (only kidding).

Catch you later...
Post Reply