newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

States of other countries in state field #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a state field

What is the expected output?
I'd like to have the states/provinces of other countries than the U.S. and 
Canada.

What version of the product are you using? On what operating system?
any.

Please provide any additional information below.
If you wish I could provide you with the swiss cantons, the german states and 
the austrian states.
I think this would make sense especially in connection with multilanguage 
capabilities...
implemented like this:
$form->addState("My State", "State", array("Country" => "Switzerland"));

Original issue reported on code.google.com by developm...@orca-services.ch on 24 Nov 2010 at 1:38

GoogleCodeExporter commented 8 years ago
Within the php-form-builder-class/includes directory, you'll find two files - 
country.json.php and state.json.php - that you can use to control the options 
for the addCountry and addState elements respectively.  You could also just use 
the addSelect element and specify the options that you need.

- Andrew

Original comment by ajporterfield@gmail.com on 24 Nov 2010 at 4:09