<?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/"
		>
<channel>
	<title>Comments on: Solving the &#8216;An illegal choice has been detected. Please contact the site administrator.&#8217; error</title>
	<atom:link href="http://www.halecomm.net/blog/2009/08/unpuzzeling-the-an-illegal-choice-has-been-detected-please-contact-the-site-administrator-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.halecomm.net/blog/2009/08/unpuzzeling-the-an-illegal-choice-has-been-detected-please-contact-the-site-administrator-error/</link>
	<description>To boldly code where no man has ever coded before</description>
	<lastBuildDate>Mon, 23 Jan 2012 08:04:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: manoilayans</title>
		<link>http://www.halecomm.net/blog/2009/08/unpuzzeling-the-an-illegal-choice-has-been-detected-please-contact-the-site-administrator-error/comment-page-1/#comment-725</link>
		<dc:creator>manoilayans</dc:creator>
		<pubDate>Tue, 10 Jan 2012 10:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.halecommunications.be/blog/?p=88#comment-725</guid>
		<description>Thanks &quot;Mike&quot; said on 17-06-2011 , Its really great.. it works.. !!</description>
		<content:encoded><![CDATA[<p>Thanks &#8220;Mike&#8221; said on 17-06-2011 , Its really great.. it works.. !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JUNFEI,CHEN</title>
		<link>http://www.halecomm.net/blog/2009/08/unpuzzeling-the-an-illegal-choice-has-been-detected-please-contact-the-site-administrator-error/comment-page-1/#comment-627</link>
		<dc:creator>JUNFEI,CHEN</dc:creator>
		<pubDate>Fri, 24 Jun 2011 16:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.halecommunications.be/blog/?p=88#comment-627</guid>
		<description>&quot;Hi JirkaRybka,
I completely agree with you on the security matter, but the problem is situated in the fact that when running numerical values like 0 or 1 through check_plain, the returned value was empty.
This returns in empty radio-buttons and thus “illegal choices”.&quot;
Hi, author, I totally agree with what you explained here. I have got the same problem. I write a radios button in custom module. and cannot get default value for radios.....so it shows me this error. would you explain a little bit how to set default value for radios. I did try to search online. thanks</description>
		<content:encoded><![CDATA[<p>&#8220;Hi JirkaRybka,<br />
I completely agree with you on the security matter, but the problem is situated in the fact that when running numerical values like 0 or 1 through check_plain, the returned value was empty.<br />
This returns in empty radio-buttons and thus “illegal choices”.&#8221;<br />
Hi, author, I totally agree with what you explained here. I have got the same problem. I write a radios button in custom module. and cannot get default value for radios&#8230;..so it shows me this error. would you explain a little bit how to set default value for radios. I did try to search online. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.halecomm.net/blog/2009/08/unpuzzeling-the-an-illegal-choice-has-been-detected-please-contact-the-site-administrator-error/comment-page-1/#comment-626</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 17 Jun 2011 00:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.halecommunications.be/blog/?p=88#comment-626</guid>
		<description>You can comment out the right lines in _validate_form function (where form_error() runs) but thats not very elegant...

Try adding &#039;#validated&#039; =&gt; &#039;TRUE&#039; to form elements definitions:
form[&#039;my_dynamic_select&#039;] = array(
   &#039;#type&#039; =&gt; &#039;select&#039;,
   &#039;#validated&#039;  =&gt; TRUE
   ...
)</description>
		<content:encoded><![CDATA[<p>You can comment out the right lines in _validate_form function (where form_error() runs) but thats not very elegant&#8230;</p>
<p>Try adding &#8216;#validated&#8217; =&gt; &#8216;TRUE&#8217; to form elements definitions:<br />
form['my_dynamic_select'] = array(<br />
   &#8216;#type&#8217; =&gt; &#8216;select&#8217;,<br />
   &#8216;#validated&#8217;  =&gt; TRUE<br />
   &#8230;<br />
)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

