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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 14, 2008 Share Posted February 14, 2008 yeah that works too Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.