Creates a dropdown list of states from the US, US Territories and Canada
$options = array( "name" => "thestates", "seperateCountries" => true, "selected" => "VA", ); $htmlOptions = array( "prompt" => "Please select a state", ); echo States::render(array("US","canada","us territories"), $options, $htmlOptions);
Total 5 comments
My question is do I store this in database as varchar or text, enum?
Got it to work :-) It was simple . Thank you for the quick response and awesome extension..
Hi Ruaan,
Did you not see the install and usage sections above?
What problems are you running into?
@dungdeveloper, I'm glad that the extension helped you out.
How do I use this extension ?
Thanks for your extension. It helps me alot!
Leave a comment
Please login to leave your comment.