<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Country dialing code select drop menu</title>
	<atom:link href="http://blog.boxedice.com/2009/12/20/country-dialing-code-select-drop-menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.boxedice.com/2009/12/20/country-dialing-code-select-drop-menu/</link>
	<description>Real software development</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:34:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Martin Sweeney</title>
		<link>http://blog.boxedice.com/2009/12/20/country-dialing-code-select-drop-menu/#comment-1192</link>
		<dc:creator><![CDATA[Martin Sweeney]]></dc:creator>
		<pubDate>Sat, 21 Aug 2010 09:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedice.com/?p=528#comment-1192</guid>
		<description><![CDATA[Like this https://gist.github.com/260620/824dd5dbac97eeeb2dc8d79cb86573566768f21d ?]]></description>
		<content:encoded><![CDATA[<p>Like this <a href="https://gist.github.com/260620/824dd5dbac97eeeb2dc8d79cb86573566768f21d" rel="nofollow">https://gist.github.com/260620/824dd5dbac97eeeb2dc8d79cb86573566768f21d</a> ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel M</title>
		<link>http://blog.boxedice.com/2009/12/20/country-dialing-code-select-drop-menu/#comment-1191</link>
		<dc:creator><![CDATA[Daniel M]]></dc:creator>
		<pubDate>Sat, 21 Aug 2010 08:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedice.com/?p=528#comment-1191</guid>
		<description><![CDATA[May be a bit late for this post, but you should have the array in format:

$countries = array(
1 =&gt; array(&#039;country_code&#039; =&gt; 64, &#039;country_name&#039; =&gt; &#039;New Zealand&#039;),
2 =&gt; array(&#039;country_code&#039; =&gt; 1, &#039;country_name&#039; =&gt; &#039;United States&#039;)
);

etc.

And then do

foreach($countries as $index =&gt; $country_data) {
echo &quot;{$country_data[&#039;country_name&#039;]} ({$country_data[&#039;country_code&#039;]})&quot;;
}

and then in processing do..

$country = $countries[$formData[&#039;countryCode&#039;]];
$country_code = $country[&#039;country_code&#039;];

A little simpler than redoing it 3 times.

Cheers]]></description>
		<content:encoded><![CDATA[<p>May be a bit late for this post, but you should have the array in format:</p>
<p>$countries = array(<br />
1 =&gt; array(&#8216;country_code&#8217; =&gt; 64, &#8216;country_name&#8217; =&gt; &#8216;New Zealand&#8217;),<br />
2 =&gt; array(&#8216;country_code&#8217; =&gt; 1, &#8216;country_name&#8217; =&gt; &#8216;United States&#8217;)<br />
);</p>
<p>etc.</p>
<p>And then do</p>
<p>foreach($countries as $index =&gt; $country_data) {<br />
echo &#8220;{$country_data['country_name']} ({$country_data['country_code']})&#8221;;<br />
}</p>
<p>and then in processing do..</p>
<p>$country = $countries[$formData['countryCode']];<br />
$country_code = $country['country_code'];</p>
<p>A little simpler than redoing it 3 times.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kinjal dixit</title>
		<link>http://blog.boxedice.com/2009/12/20/country-dialing-code-select-drop-menu/#comment-905</link>
		<dc:creator><![CDATA[kinjal dixit]]></dc:creator>
		<pubDate>Sun, 21 Mar 2010 13:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedice.com/?p=528#comment-905</guid>
		<description><![CDATA[line 195 of newarray.php, 

     &#039;code&#039; =&gt; Zaire243,

should change to,

    &#039;code&#039; =&gt; 243,]]></description>
		<content:encoded><![CDATA[<p>line 195 of newarray.php, </p>
<p>     &#8216;code&#8217; =&gt; Zaire243,</p>
<p>should change to,</p>
<p>    &#8216;code&#8217; =&gt; 243,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Sweeney</title>
		<link>http://blog.boxedice.com/2009/12/20/country-dialing-code-select-drop-menu/#comment-637</link>
		<dc:creator><![CDATA[Martin Sweeney]]></dc:creator>
		<pubDate>Sun, 20 Dec 2009 21:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.boxedice.com/?p=528#comment-637</guid>
		<description><![CDATA[Thanks for the big array, that would have been a pain to make myself. 

I made it a bit easier to use in webapps that don&#039;t like raw html too much:

https://gist.github.com/260620/824dd5dbac97eeeb2dc8d79cb86573566768f21d]]></description>
		<content:encoded><![CDATA[<p>Thanks for the big array, that would have been a pain to make myself. </p>
<p>I made it a bit easier to use in webapps that don&#8217;t like raw html too much:</p>
<p><a href="https://gist.github.com/260620/824dd5dbac97eeeb2dc8d79cb86573566768f21d" rel="nofollow">https://gist.github.com/260620/824dd5dbac97eeeb2dc8d79cb86573566768f21d</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

