AV1611 Posted February 14, 2008 Share Posted February 14, 2008 I have a pulldown menu list of states I use all the time. Can someone direct me to one that has a list of provinces for canada? I've been googling and can't seam to find one. Thanks. Link to comment https://forums.phpfreaks.com/topic/91000-simple-pulldown-canada/ Share on other sites More sharing options...
phpQuestioner Posted February 14, 2008 Share Posted February 14, 2008 It would not be hard to make; just create a select menu, and add each province as a option. Here is a list of provinces on this web page: https://www.cia.gov/library/publications/the-world-factbook/print/ca.html Link to comment https://forums.phpfreaks.com/topic/91000-simple-pulldown-canada/#findComment-466428 Share on other sites More sharing options...
AV1611 Posted February 14, 2008 Author Share Posted February 14, 2008 I found one: http://tranquilpenguin.com/~osprey/states.html Link to comment https://forums.phpfreaks.com/topic/91000-simple-pulldown-canada/#findComment-466436 Share on other sites More sharing options...
phpQuestioner Posted February 14, 2008 Share Posted February 14, 2008 yeah that works too Link to comment https://forums.phpfreaks.com/topic/91000-simple-pulldown-canada/#findComment-466440 Share on other sites More sharing options...
micah1701 Posted February 18, 2008 Share Posted February 18, 2008 I keep an include page with an array of all states/provinces and US territories... then when ever I need such a list in my site (which is quite freqently) I can build it on the fly: <select> <? include('list_states.php'); foreach($states_array as $_two_digit_postal_code => $state_name){ ?> <option value="<?=$_two_digit_postal_code ?>"><?=$state_name ?></option> <? } ?> </select> Link to comment https://forums.phpfreaks.com/topic/91000-simple-pulldown-canada/#findComment-469475 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.