<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1044670" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1044670</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Code for simple HTML Script</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-checkbox#comment-1250408</link>
    <description> &lt;p&gt;Code for simple HTML Script :-&amp;gt;&lt;/p&gt;
&lt;p&gt;Code for simple PHP Script :-&amp;gt;&lt;/p&gt;
&lt;p&gt;if ($_POST[&#039;chk_box&#039;]==&#039;enter&#039;)&lt;br /&gt;
 {&lt;br /&gt;
   // Code which you want to execute.&lt;br /&gt;
}&lt;br /&gt;
Explanation here $_POST[] is an global variable, and $_POST[&#039;chk_box&#039;] means it retrieve the value of check box on client side then check it at server side by value enter.&lt;br /&gt;
actually it $_POST[] create an array &lt;/p&gt;
&lt;p&gt;Like array&lt;br /&gt;
{&lt;br /&gt;
$_POST[&#039;chk_box&#039;] is equivalent  to $_POST[index of array 0] = value i.e. enter&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Tue, 29 Jun 2010 11:55:12 +0000</pubDate>
 <dc:creator>sandeep Kumar</dc:creator>
 <guid isPermaLink="false">comment 1250408 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>In order to help you, we</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-checkbox#comment-1244206</link>
    <description> &lt;p&gt;In order to help you, we would need to know what the current script is doing (is it already e-mailing someone else, and you just need to add a recipient, etc). Since it&#039;s open source, can you list which one it is?&lt;/p&gt;
&lt;p&gt;Basically in a nutshell, assuming you are already collecting the needed information, add the checkbox:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; name=&amp;quot;chkSubscribe&amp;quot; value=&amp;quot;join&amp;quot; id=&amp;quot;chkSubscribe&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;label for=&amp;quot;chkSubscribe&amp;quot;&amp;gt;Tick here to join mailing list&amp;lt;/label&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Then in the PHP, do a check for that value being set:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if ($_POST[&amp;#039;chkSubscribe&amp;#039;]==&amp;#039;join&amp;#039;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; // Code to e-mail you their info &lt;br /&gt;&amp;nbsp;&amp;nbsp; // (see &lt;a href=&quot;http://us.php.net/manual/en/function.mail.php&quot; title=&quot;http://us.php.net/manual/en/function.mail.php&quot;&gt;http://us.php.net/manual/en/function.mail.php&lt;/a&gt; for some samples)&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Aug 2009 21:35:35 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1244206 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
