<?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: how to store and retrieve checkbox value in php?</title>
	<atom:link href="http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/</link>
	<description>Daily Blog from Internet Entrepreneur/Webmaster</description>
	<lastBuildDate>Sun, 14 Mar 2010 20:20:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Heather</title>
		<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-7131</link>
		<dc:creator>Heather</dc:creator>
		<pubDate>Thu, 04 Mar 2010 19:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-7131</guid>
		<description>thanks! managed to adjust this to fit my scenario nicely... :)</description>
		<content:encoded><![CDATA[<p>thanks! managed to adjust this to fit my scenario nicely&#8230; <img src='http://corpocrat.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rani</title>
		<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4997</link>
		<dc:creator>Rani</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4997</guid>
		<description>Thank you, Its easy to understand me.</description>
		<content:encoded><![CDATA[<p>Thank you, Its easy to understand me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darrel</title>
		<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4913</link>
		<dc:creator>Darrel</dc:creator>
		<pubDate>Tue, 10 Nov 2009 09:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4913</guid>
		<description>Hi,


Can you help me?
My result will come up double.

the checked + the unchecked.

//## script
while($return	=	$db-&gt;dbFetchArray($result))
{
	$nummer	=	$return[&#039;provincienummer&#039;];
	$naam	=	$return[&#039;naam&#039;];

	foreach($mnprnr as $manager_pr_nr)
    {
  	if(in_array($manager_pr_nr,explode(&#039;/&#039;,$return[&#039;provincienummer&#039;])))
  	{
  	$checked_pr = &#039;CHECKED&#039;;
  	}//end if
  	
  	else if(!in_array($manager_pr_nr,explode(&#039;/&#039;,$return[&#039;provincienummer&#039;]))) {
  	$checked_pr = &#039;&#039;;
  	}
  	
    echo(&#039;&#039;.$naam.&#039;&#039;); 	    
    }//end foreach
  
   
}//end while
//##end script</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can you help me?<br />
My result will come up double.</p>
<p>the checked + the unchecked.</p>
<p>//## script<br />
while($return	=	$db-&gt;dbFetchArray($result))<br />
{<br />
	$nummer	=	$return['provincienummer'];<br />
	$naam	=	$return['naam'];</p>
<p>	foreach($mnprnr as $manager_pr_nr)<br />
    {<br />
  	if(in_array($manager_pr_nr,explode(&#8216;/&#8217;,$return['provincienummer'])))<br />
  	{<br />
  	$checked_pr = &#8216;CHECKED&#8217;;<br />
  	}//end if</p>
<p>  	else if(!in_array($manager_pr_nr,explode(&#8216;/&#8217;,$return['provincienummer']))) {<br />
  	$checked_pr = &#8221;;<br />
  	}</p>
<p>    echo(&#8221;.$naam.&#8221;);<br />
    }//end foreach</p>
<p>}//end while<br />
//##end script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubin</title>
		<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4814</link>
		<dc:creator>rubin</dc:creator>
		<pubDate>Tue, 20 Oct 2009 19:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4814</guid>
		<description>good work dude</description>
		<content:encoded><![CDATA[<p>good work dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fero</title>
		<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4513</link>
		<dc:creator>Fero</dc:creator>
		<pubDate>Sat, 29 Aug 2009 09:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4513</guid>
		<description>Thanks man.. quick understandable for everybody</description>
		<content:encoded><![CDATA[<p>Thanks man.. quick understandable for everybody</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rakesh</title>
		<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4285</link>
		<dc:creator>Rakesh</dc:creator>
		<pubDate>Thu, 16 Jul 2009 22:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4285</guid>
		<description>Hi There,
I am having issue when I unselect previous selected checkboxes and submit the form. After post i should be able to retrieve $_POST[&#039;colors&#039;] with null value however i not getting colors variable at all.
It works fine if there are one or more selection checked.

Use case scenario (similar to your color):
I seletced &#039;Red&#039;, &#039;Blue&#039;, &#039;Brown&#039; initially and saved the form.
I retreived the form for edit and unselected &#039;Red&#039;, &#039;Blue&#039; and &#039;Brown&#039; and submit the form.
I should get null value for $_POST[&#039;colors&#039;].

Thanks for your time to look into it.

-Rax</description>
		<content:encoded><![CDATA[<p>Hi There,<br />
I am having issue when I unselect previous selected checkboxes and submit the form. After post i should be able to retrieve $_POST['colors'] with null value however i not getting colors variable at all.<br />
It works fine if there are one or more selection checked.</p>
<p>Use case scenario (similar to your color):<br />
I seletced &#8216;Red&#8217;, &#8216;Blue&#8217;, &#8216;Brown&#8217; initially and saved the form.<br />
I retreived the form for edit and unselected &#8216;Red&#8217;, &#8216;Blue&#8217; and &#8216;Brown&#8217; and submit the form.<br />
I should get null value for $_POST['colors'].</p>
<p>Thanks for your time to look into it.</p>
<p>-Rax</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbi</title>
		<link>http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4248</link>
		<dc:creator>Debbi</dc:creator>
		<pubDate>Tue, 30 Jun 2009 18:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/#comment-4248</guid>
		<description>Thanks for this! Exactly what I was looking for and works great.</description>
		<content:encoded><![CDATA[<p>Thanks for this! Exactly what I was looking for and works great.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
