<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8075411850070429089</id><updated>2026-10-21T09:18:07.945-07:00</updated><title type='text'>PHP BASIC</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-9042880597152289801</id><published>2012-11-21T21:23:00.000-08:00</published><updated>2012-11-21T21:23:17.591-08:00</updated><title type='text'>Dompdf every page with header and footer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Dompdf used to generate PDF but there is occurred a problem to attach header and footer on every page . Following is a solution to attach header and footer on every page.&lt;br /&gt;
&lt;br /&gt;
copy whole code.&lt;br /&gt;
&lt;br /&gt;
This code have all setting is correctly done.&lt;br /&gt;
just you need include library of dompdf.&lt;br /&gt;
&lt;br /&gt;
require_once(&quot;dompdf/dompdf_config.inc.php&quot;);&lt;br /&gt;
$html = &#39;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;style&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @page { margin: 180px 50px; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #header { position: fixed; left: 0px; top: -180px; right: 0px; height: 150px; background-color: orange; text-align: center; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #footer { position: fixed; left: 0px; bottom: -180px; right: 0px; height: 150px; background-color: lightblue; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #footer .page:after { content: counter(page, upper-roman); }&lt;br /&gt;&amp;nbsp; &amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;div id=&quot;header&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h1&amp;gt;ibmphp.blogspot.com&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;div id=&quot;footer&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p class=&quot;page&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;div id=&quot;content&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p style=&quot;page-break-before: always;&quot;&amp;gt;&amp;lt;a href=&quot;ibmphp.blogspot.com&quot;&amp;gt;ibmphp.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&#39;;&lt;br /&gt;&lt;br /&gt;$dompdf = new DOMPDF();&lt;br /&gt;$dompdf-&amp;gt;load_html($html);&lt;br /&gt;$dompdf-&amp;gt;render();&lt;br /&gt;$dompdf-&amp;gt;stream(&quot;paulsmith.pdf&quot;);&lt;br /&gt;
&lt;br /&gt;
This will definately help you.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/9042880597152289801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/11/dompdf-every-page-with-header-and-footer.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/9042880597152289801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/9042880597152289801'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/11/dompdf-every-page-with-header-and-footer.html' title='Dompdf every page with header and footer'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-4440553325644460912</id><published>2012-11-04T22:24:00.001-08:00</published><updated>2012-11-05T03:32:57.492-08:00</updated><title type='text'>Submit Form On Laod Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;Following is javascript function which submit the form on load page.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; function myfunc () {&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var frm = document.getElementById(&quot;formName&quot;);&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;frm.submit();&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp; }&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;color: #0c343d;&quot;&gt;&amp;nbsp;window.onload = myfunc;&amp;nbsp;&lt;/b&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&amp;lt;/script&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;b&gt;This submit form on load page&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/4440553325644460912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/11/submit-form-on-laod-page.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/4440553325644460912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/4440553325644460912'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/11/submit-form-on-laod-page.html' title='Submit Form On Laod Page'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-5173790408949983580</id><published>2012-11-04T22:06:00.002-08:00</published><updated>2012-11-04T22:06:55.361-08:00</updated><title type='text'>How to css suport internet explorer browser Compatibility</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Following is the code for the purpose Internet explorer browser&amp;nbsp;Compatibility of css and html tag.&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; For example your css is following path&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/default.css&quot;media=&quot;screen, projector, print&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/print.css&quot;media=&quot;print&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then for&amp;nbsp;&amp;nbsp;Internet explorer browser&amp;nbsp;Compatibility do following step.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;lt;!--[if lte IE 6]&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie6_overrides.css&quot;media=&quot;screen, projector, print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie6_overrides_print.css&quot;media=&quot;print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;![endif]--&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;!--[if IE 7]&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie7_overrides.css&quot;media=&quot;screen, projector, print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie7_overrides_print.css&quot;media=&quot;print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;![endif]--&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;!--[if IE 7.0a]&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie7_overrides.css&quot;media=&quot;screen, projector, print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie7_overrides_print.css&quot;media=&quot;print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;![endif]--&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;!--[if IE 7.0b]&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie7_overrides.css&quot;media=&quot;screen, projector, print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie7_overrides_print.css&quot;media=&quot;print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;![endif]--&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;!--[if IE 8]&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie8_overrides.css&quot;media=&quot;screen, projector, print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ui/stylesheets/ie8_overrides_print.css&quot;media=&quot;print&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&amp;lt;![endif]--&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;b&gt;This will help you for solve the problem&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/5173790408949983580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/11/how-to-css-suport-internet-explorer.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/5173790408949983580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/5173790408949983580'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/11/how-to-css-suport-internet-explorer.html' title='How to css suport internet explorer browser Compatibility'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-4748292488020027990</id><published>2012-11-01T21:53:00.001-07:00</published><updated>2012-11-07T04:10:13.667-08:00</updated><title type='text'>How Refresh Web Page With Javascript and Jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There is many way to refresh the page with javascript and jquery and also you can set timing for refreshing the page, these details are giving below.&lt;br /&gt;
&lt;br /&gt;
1. Javascript refresh the page&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &#39;Courier New&#39;, monospace; font-size: 12px;&quot;&gt;&amp;lt;a href=&quot;javascript:location.reload(true)&quot;&amp;gt;Refresh Page&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, monospace; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, monospace; font-size: 12px;&quot;&gt;2. Auto refresh the page with javascript&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, monospace; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, monospace; font-size: 12px;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f1f1f1; font-family: &#39;Courier New&#39;, monospace; font-size: 12px;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f1f1f1; font-family: &#39;Courier New&#39;, monospace; font-size: 12px;&quot;&gt;&amp;lt;head&amp;gt;
&amp;lt;script type=&quot;text/JavaScript&quot;&amp;gt;
&amp;lt;!--
function AutoRefresh( t ) {
 setTimeout(&quot;location.reload(true);&quot;, t);
}
//   --&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body onload=&quot;JavaScript:AutoRefresh(5000);&quot;&amp;gt;
&amp;lt;p&amp;gt;This page will refresh every 5 seconds.&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
3. Jquery using refresh the page&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: maroon; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;#something&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;click&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: darkblue; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-color: white; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;    location&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;reload&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;});                              &amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-color: white; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4. In Html tag&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;&amp;lt;input type=&quot;button&quot; value=&quot;Reload Page&quot; onClick=&quot;document.location.reload(true)&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;                    &amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;These are the method using for page refresh.                         &lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-color: white; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/4748292488020027990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/11/how-refresh-with-javascript-and-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/4748292488020027990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/4748292488020027990'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/11/how-refresh-with-javascript-and-jquery.html' title='How Refresh Web Page With Javascript and Jquery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-611755831181001523</id><published>2012-10-31T21:37:00.003-07:00</published><updated>2012-10-31T21:46:29.284-07:00</updated><title type='text'>Checkbox Button For Checked Checkbox Using Javascript</title><content type='html'>&lt;script type=&quot;text/javascript&quot;&gt;
function check_all(checkBoxForm){ 
 for (i = 0; i &lt; checkBoxForm.length; i++){
  checkBoxForm[i].checked = true ;
 }
}
function uncheck_all(checkBoxForm){ 
 for (i = 0; i &lt; checkBoxForm.length; i++){
  checkBoxForm[i].checked = false ;
 }
}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.checkBoxForm{background: none repeat scroll 0 0 wheat; color: #000000;}
.master{color: blue;font-family: arial;font-stretch: expanded;font-weight: lighter;margin-left: 160px;}
.slave{color: #4D4D4D;margin-left: 160px;}
.hob{color: #4D4D4D;margin-left: 160px;}
&lt;/style&gt;
&lt;p&gt;
Using javascript for check and uncheck all checkbox on click, There is two type button both are different like check all and uncheck all.
&lt;/p&gt;
&lt;form name=&quot;checkBoxForm&quot; class=&quot;checkBoxForm&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;span class=&quot;master&quot;&gt;&lt;input type=&quot;button&quot; id=&quot;master&quot; value=&quot;Select All&quot; onClick=&quot;check_all(checkBoxForm)&quot;&gt;&lt;input type=&quot;button&quot; id=&quot;master&quot; value=&quot;Select None&quot; onClick=&quot;uncheck_all(checkBoxForm)&quot;&gt;&lt;/span&gt;
&lt;br /&gt;&lt;br /&gt;
 &lt;p class=&quot;hob&quot;&gt;Please choose your sports which you likes.&lt;/p&gt;
&lt;div class=&quot;slave&quot;&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Hockey&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Fooball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Tennis&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Cricket&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Badminton&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Basket Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Volley Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Long Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;High Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Shotput&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;p&gt;The javascript code is following, which do this all action. Take a look on that and remeber these thing is very easy and you will need to learn about these action &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;checkBoxForm&quot;&gt;
&lt;p style=&quot;color: -moz-menubarhovertext; margin-left: 160px;&quot;&gt;
 function check_all(formName){&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;for (i = 0; i &amp;lt; formName.length; i++){&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;formName[i].checked = true ;&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
 }&lt;br /&gt;
 function uncheck_all(formName){&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;for (i = 0; i &amp;lt; formName.length; i++){&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;formName[i].checked = false ;&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
 }&lt;/p&gt;
&lt;/div&gt;
 &lt;p&gt;
 Just you need to follow following things, keep it in mind when you are going to do this.&lt;/p&gt;
&lt;p&gt;
 1. All checkbox need to same name.&lt;/p&gt;
&lt;p&gt;
 2. Give to form name in your form tag.&lt;/p&gt;
&lt;p&gt;
 These thing you need to know. Following giving working code just you need to copy and paste in our page and run.&lt;/p&gt;
&lt;div&gt;
&lt;textarea cols=&quot;80&quot; rows=&quot;17&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function check_all(formName){ 
 for (i = 0; i &lt; formName.length; i++){
  formName[i].checked = true ;
 }
}
function uncheck_all(formName){ 
 for (i = 0; i &lt; formName.length; i++){
  formName[i].checked = false ;
 }
}
&lt;/script&gt;
&lt;form name=&quot;checkBoxForm&quot; class=&quot;checkBoxForm&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;span class=&quot;master&quot;&gt;&lt;input type=&quot;button&quot; id=&quot;master&quot; value=&quot;Select All&quot; onClick=&quot;check_all(checkBoxForm)&quot;&gt;&lt;input type=&quot;button&quot; id=&quot;master&quot; value=&quot;Select None&quot; onClick=&quot;uncheck_all(checkBoxForm)&quot;&gt;&lt;/span&gt;
&lt;br /&gt;&lt;br /&gt;
 &lt;p class=&quot;hob&quot;&gt;Please choose your sports which you likes.&lt;/p&gt;
&lt;div class=&quot;slave&quot;&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Hockey&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Fooball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Tennis&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Cricket&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Badminton&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Basket Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Volley Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Long Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;High Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Shotput&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/textarea&gt;
&lt;/div&gt;
&lt;br/&gt;&lt;p&gt;This is javascript check and uncheck code.&lt;/p&gt;






</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/611755831181001523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/checkbox-button-for-checked-checkbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/611755831181001523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/611755831181001523'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/checkbox-button-for-checked-checkbox.html' title='Checkbox Button For Checked Checkbox Using Javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-1777926251951996763</id><published>2012-10-31T21:35:00.001-07:00</published><updated>2012-10-31T21:35:33.885-07:00</updated><title type='text'>Checkbox check onclick master checkbox</title><content type='html'>&lt;script type=&quot;text/javascript&quot;&gt;
function check_uncheck_all(formName){ 
 var action = true;
 if(document.getElementById(&#39;master&#39;).checked==true){
  action = true;
 }
 else { 
  action = false;
 }
 for (i = 0; i &lt; formName.length; i++){
  formName[i].checked = action ;
 }
}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.checkBoxForm{background: none repeat scroll 0 0 wheat; color: #000000;}
.master{color: blue;font-family: arial;font-stretch: expanded;font-weight: lighter;margin-left: 160px;}
.slave{color: #4D4D4D;margin-left: 160px;}
.hob{color: #4D4D4D;margin-left: 160px;}
&lt;/style&gt;
&lt;p&gt;
Using javascript for check and uncheck all checkbox on click master checkbox.You can see action at following, just click on master checkbox for check and uncheck all checkbox.
&lt;/p&gt;
&lt;form name=&quot;checkBoxForm&quot; class=&quot;checkBoxForm&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;span class=&quot;master&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;master&quot; onClick=&quot;check_uncheck_all(checkBoxForm)&quot;&gt;Click for Check and Uncheck all checkbox.&lt;/span&gt;
&lt;br /&gt;&lt;br /&gt;
 &lt;p class=&quot;hob&quot;&gt;Please choose your sports which you likes.&lt;/p&gt;
&lt;div class=&quot;slave&quot;&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Hockey&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Fooball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Tennis&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Cricket&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Badminton&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Basket Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Volley Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Long Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;High Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Shotput&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;p&gt;The javascript code is following, which do this all action. Take a look on that and remeber these thing is very easy and you will need to learn about these action &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;checkBoxForm&quot;&gt;
&lt;p style=&quot;color: -moz-menubarhovertext; margin-left: 160px;&quot;&gt;
 function check_uncheck_all(formName){&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;var action = true;&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;if(document.getElementById(&amp;#39;master&amp;#39;).checked==true){&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;action = true;&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;else {&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;action = false;&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;for (i = 0; i &amp;lt; formName.length; i++){&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;formName[i].checked = action ;&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
 }&lt;/p&gt;
&lt;/div&gt;
 &lt;p&gt;
 Just you need to follow following things, keep it in mind when you are going to do this.&lt;/p&gt;
&lt;p&gt;
 1. All checkbox need to same name.&lt;/p&gt;
&lt;p&gt;
 2. Give to form name in your form tag.&lt;/p&gt;
&lt;p&gt;
 3. Give id to your master checkbox.&lt;/p&gt;
&lt;p&gt;
 These thing you need to know. Following giving working code just you need to copy and paste in our page and run.&lt;/p&gt;
&lt;div&gt;
&lt;textarea cols=&quot;80&quot; rows=&quot;17&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function check_uncheck_all(formName){ 
 var action = true;
 if(document.getElementById(&#39;master&#39;).checked==true){
  action = true;
 }
 else { 
  action = false;
 }
 for (i = 0; i &lt; formName.length; i++){
  formName[i].checked = action ;
 }
}
&lt;/script&gt;
&lt;form name=&quot;checkBoxForm&quot; class=&quot;checkBoxForm&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;span class=&quot;master&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;master&quot; onClick=&quot;check_uncheck_all(checkBoxForm)&quot;&gt;Click for Check and Uncheck all checkbox.&lt;/span&gt;
&lt;br /&gt;&lt;br /&gt;
 &lt;p class=&quot;hob&quot;&gt;Please choose your sports which you likes.&lt;/p&gt;
&lt;div class=&quot;slave&quot;&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Hockey&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Fooball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Tennis&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Cricket&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Badminton&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Basket Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Volley Ball&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Long Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;High Jump&lt;br /&gt;
 &lt;input type=&quot;checkbox&quot; name=&quot;brand_id&quot; id=&quot;brand_id&quot; value=&quot;123&quot;&gt;Shotput&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/textarea&gt;
&lt;/div&gt;
&lt;br/&gt;&lt;p&gt;This is javascript check and uncheck code.&lt;/p&gt;







</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/1777926251951996763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/checkbox-check-onclick-master-checkbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/1777926251951996763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/1777926251951996763'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/checkbox-check-onclick-master-checkbox.html' title='Checkbox check onclick master checkbox'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-1723691384155846967</id><published>2012-10-31T08:45:00.002-07:00</published><updated>2012-10-31T21:33:02.300-07:00</updated><title type='text'>Checkbox Onclick Select All And Unselect All</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    $(function() {
     $(&quot;#select_all&quot;).click(function() {
      $(&#39;input[name*=&quot;chk2&quot;]&#39;).attr(&quot;checked&quot;,&quot;checked&quot;);
     });
    });
    $(function() {
     $(&quot;#unselect_all&quot;).click(function() {
      $(&#39;input[name*=&quot;chk2&quot;]&#39;).removeAttr(&quot;checked&quot;);
     });
    });
   &lt;/script&gt;
  &lt;style type=&quot;text/css&quot;&gt;
   .buttt{background: none repeat scroll 0px 0px paleturquoise; color: slategray;}
   .butt{border: 2px solid green; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; color: teal; background: none repeat scroll 0% 0% seashell; border-bottom-left-radius: inherit;}
  &lt;/style&gt;
&lt;br /&gt;
&lt;div class=&quot;buttt&quot;&gt;
&lt;form&gt;
Following check the effect of jquery select all and unselect all. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;input class=&quot;butt&quot; id=&quot;select_all&quot; type=&quot;button&quot; value=&quot;Select All&quot; /&gt;
   &lt;input class=&quot;butt&quot; id=&quot;unselect_all&quot; type=&quot;button&quot; value=&quot;Unselect All&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;31
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;32
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;33
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;34
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;37
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;38
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;39
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;40&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;10
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;11
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;12
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;13
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;14
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;17
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;18
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;19&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;20
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;21
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;22
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;23
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;24
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;27
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;28
   &lt;input name=&quot;chk2[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; /&gt;29
  &lt;br /&gt;
&lt;br /&gt;
This is the jquery simple select all and unselect function. These function is following just check it.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&amp;nbsp; $(function(){$(&quot;#select_all&quot;).click(function() {&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$(&#39;input[name*=&quot;chk2&quot;]&#39;).attr(&quot;checked&quot;,&quot;checked&quot;); });&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;});&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;$(function() { $(&quot;#unselect_all&quot;).click(function() {&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$(&#39;input[name*=&quot;chk2&quot;]&#39;).removeAttr(&quot;checked&quot;); });&lt;br /&gt;
 &amp;nbsp;&amp;nbsp; &amp;nbsp;});&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
These two function work to select all or unselect all checkbox. Following is given code of these functionality in textarea.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Just copy and paste in your page for testing purpose. This is for demo copy code and run.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;textarea cols=&quot;80&quot; rows=&quot;17&quot;&gt;&lt;html&gt;
 &lt;head&gt;
   &lt;script type=&quot;text/javascript&quot;&gt;
    $(function() {
     $(&quot;#select_all&quot;).click(function() {
      $(&#39;input[name*=&quot;chk2&quot;]&#39;).attr(&quot;checked&quot;,&quot;checked&quot;);
     });
    });
    $(function() {
     $(&quot;#unselect_all&quot;).click(function() {
      $(&#39;input[name*=&quot;chk2&quot;]&#39;).removeAttr(&quot;checked&quot;);
     });
    });
   &lt;/script&gt;
  &lt;style type=&quot;text/css&quot; &gt;
   .buttt{border: 2px solid green; background: none repeat scroll 0px 0px paleturquoise; color: slategray; padding: 220px;}
   .butt{border: 2px solid green; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; color: teal; background: none repeat scroll 0% 0% seashell; border-bottom-left-radius: inherit;}
  &lt;/style&gt;
 &lt;/head&gt;
 &lt;div class=&quot;buttt&quot;&gt;
  &lt;form&gt;
   &lt;input type=&quot;button&quot; id=&quot;select_all&quot; value=&quot;Select All&quot; class=&quot;butt&quot;&gt;
   &lt;input type=&quot;button&quot; id=&quot;unselect_all&quot; value=&quot;Unselect All&quot; class=&quot;butt&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;31
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;32
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;33
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;34
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;37
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;38
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;39
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;40&lt;br /&gt;&lt;br /&gt;
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;10
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;11
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;12
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;13
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;14
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;17
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;18
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;19&lt;br /&gt;&lt;br /&gt;
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;20
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;21
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;22
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;23
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;24
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;27
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;28
   &lt;input type=&quot;checkbox&quot; name=&quot;chk2[]&quot; value=&quot;2&quot;&gt;29
  &lt;/form&gt;
&lt;/div&gt;
&lt;/html&gt;
&lt;/textarea&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/div&gt;
This is great code for select and uselect and optimisation code.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/1723691384155846967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/checkbox-onclick-select-all-and.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/1723691384155846967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/1723691384155846967'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/checkbox-onclick-select-all-and.html' title='Checkbox Onclick Select All And Unselect All'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-492394387382725252</id><published>2012-10-29T08:28:00.000-07:00</published><updated>2012-10-31T08:39:08.558-07:00</updated><title type='text'>Random Number Genrate According To Your Varaible</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Following Code Used for&amp;nbsp;gen-ratting random number according to you want. If you want to alphabet and numeric comes together and want to give limit of both, like numeric shows 2 value and alphabet shows 3 value, then you can use this random number system.&lt;br /&gt;
&lt;br /&gt;
1. This is very simple random number function and will help you for password&amp;nbsp;generation&amp;nbsp;or &amp;nbsp;some other task.&lt;br /&gt;
&lt;br /&gt;
2. You can define your character for generation character, For example you need to change following variable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; $character_set_array = array( );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; $character_set_array[ ] = array( &#39;count&#39; =&amp;gt; 3, &#39;characters&#39; =&amp;gt; &#39;abcdefghijklmnopqrstuvwxyz&#39; );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; $character_set_array[ ] = array( &#39;count&#39; =&amp;gt; 3, &#39;characters&#39; =&amp;gt; &#39;0123456789&#39; );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; $character_set_array[ ] = array( &#39;count&#39; =&amp;gt; 3, &#39;characters&#39; =&amp;gt; &#39;!@#$&amp;amp;*&#39; );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;$character_set_array[ ] = array( &#39;count&#39; =&amp;gt; 3, &#39;characters&#39; =&amp;gt; &#39;&amp;lt;&amp;gt;?&quot;:{}/;&#39;&quot;&#39; );&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So then function chose character from every character set but only 3 char from every, Because there is count given 3. So only three character choose from every one.&lt;br /&gt;
&lt;br /&gt;
Function given in following text area just select all, copy and paste in your page. Now just echo function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;textarea cols=&quot;80&quot; rows=&quot;17&quot;&gt;function random_string()
{
  $character_set_array = array( );
  $character_set_array[ ] = array( &#39;count&#39; =&gt; 3, &#39;characters&#39; =&gt; &#39;abcdefghijklmnopqrstuvwxyz&#39; );
  $character_set_array[ ] = array( &#39;count&#39; =&gt; 3, &#39;characters&#39; =&gt; &#39;0123456789&#39; );
  $character_set_array[ ] = array( &#39;count&#39; =&gt; 3, &#39;characters&#39; =&gt; &#39;!@#$&amp;*&#39; );
  $character_set_array[ ] = array( &#39;count&#39; =&gt; 3, &#39;characters&#39; =&gt; &#39;&lt;&gt;?:&quot;{}[]&#39; );
  $temp_array = array( );
  foreach ( $character_set_array as $character_set )
  {
    for ( $i = 0; $i &lt; $character_set[ &#39;count&#39; ]; $i++ )
    {
     $temp_array[ ] = $character_set[ &#39;characters&#39; ][ rand( 0, strlen( $character_set[ &#39;characters&#39; ] ) - 1 ) ];
    }
  }
  shuffle( $temp_array );
  return implode( &#39;&#39;, $temp_array );
}

echo random_string();
&lt;/textarea&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Following, I am giving some output of the function.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 1. &amp;nbsp;3!:{u#1&amp;gt;yk#1&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 2. &amp;nbsp;&amp;amp;$1l?7]*yo?2&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 3.&amp;nbsp;&quot;c]86i!@&quot;*7g&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 4. &amp;nbsp;&amp;lt;@{&amp;gt;6f&amp;amp;h1h4@&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; These are the output of the above function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/492394387382725252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/random-number-genrate-according-to-your.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/492394387382725252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/492394387382725252'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/random-number-genrate-according-to-your.html' title='Random Number Genrate According To Your Varaible'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-2130403930998724418</id><published>2012-10-25T05:51:00.001-07:00</published><updated>2012-10-31T07:56:08.659-07:00</updated><title type='text'>Ajax Library </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Ajax is very important for websites development. It&#39;s work without refreshing the page of websites.&lt;br /&gt;
&lt;br /&gt;
Following is given ajax function.&lt;br /&gt;
&lt;br /&gt;
This will compatible with all browsers like opera, mozila firefox, chrome, IE7 and above.&lt;br /&gt;
&lt;br /&gt;
just copy all code which is given in text area.&lt;br /&gt;
&lt;br /&gt;
How to use this ajax is following. Follow step by step.&lt;br /&gt;
&lt;br /&gt;
&lt;textarea cols=&quot;80&quot; rows=&quot;10&quot;&gt;function Ajax() {
  this.req = null;
  this.url = null;
  this.status = null;
  this.statusText = &#39;&#39;;
  this.method = &#39;GET&#39;;
  this.async = true;
  this.dataPayload = null;
  this.readyState = null;
  this.responseText = null;
  this.responseXML = null;
  this.handleResp = null;
  this.responseFormat = &#39;text&#39;, // &#39;text&#39;, &#39;xml&#39;, &#39;object&#39;
  this.mimeType = null;
  this.headers = [];

  
  this.init = function() {
    var i = 0;
    var reqTry = [ 
      function() { return new XMLHttpRequest(); },
      function() { return new ActiveXObject(&#39;Msxml2.XMLHTTP&#39;) },
      function() { return new ActiveXObject(&#39;Microsoft.XMLHTTP&#39; )} ];
      
    while (!this.req &amp;&amp; (i &lt; reqTry.length)) {
      try { 
        this.req = reqTry[i++]();
      } 
      catch(e) {}
    }
    return true;
  };
  this.doGet = function(url, hand, format) {
    this.url = url;
    this.handleResp = hand;
    this.responseFormat = format || &#39;text&#39;;
    this.doReq();
  };
  this.doPost = function(url, dataPayload, hand, format) {
    this.url = url;
    this.dataPayload = dataPayload;
    this.handleResp = hand;
    this.responseFormat = format || &#39;text&#39;;
    this.method = &#39;POST&#39;;
    this.doReq();
  };
  this.doReq = function() {
    var self = null;
    var req = null;
    var headArr = [];
    
    if (!this.init()) {
      alert(&#39;Could not create XMLHttpRequest object.&#39;);
      return;
    }
    req = this.req;
    req.open(this.method, this.url, this.async);
    if (this.method == &quot;POST&quot;) {
      this.req.setRequestHeader(&#39;Content-Type&#39;, &#39;application/x-www-form-urlencoded&#39;);
    }
    if (this.method == &#39;POST&#39;) {
      req.setRequestHeader(&#39;Content-Type&#39;, &#39;application/x-www-form-urlencoded&#39;);
    }
    self = this;
    req.onreadystatechange = function() {
      var resp = null;
      self.readyState = req.readyState;
      if (req.readyState == 4) {
        self.status = req.status;
        self.statusText = req.statusText;
        self.responseText = req.responseText;
        self.responseXML = req.responseXML;
        
        switch(self.responseFormat) {
          case &#39;text&#39;:
            resp = self.responseText;
            break;
          case &#39;xml&#39;:
            resp = self.responseXML;
            break;
          case &#39;object&#39;:
            resp = req;
            break;
        }
        
        if (self.status &gt; 199 &amp;&amp; self.status &lt; 300) {
          if (!self.handleResp) {
            //alert(&#39;No response handler defined &#39; + &#39;for this XMLHttpRequest object.&#39;);
            return;
          }
          else {
            self.handleResp(resp);
          }
        }
        
        else {
          self.handleErr(resp);
        }
      }
    }
    req.send(this.dataPayload);
  };
  this.abort = function() {
    if (this.req) {
      this.req.onreadystatechange = function() { };
      this.req.abort();
      this.req = null;
    }
  };
  this.handleErr = function() {
    var errorWin;
    // Create new window and display error
    try {
      errorWin = window.open(&#39;&#39;, &#39;errorWin&#39;);
      errorWin.document.body.innerHTML = this.responseText;
    }
    // If pop-up gets blocked, inform user
    catch(e) {
      alert(&#39;An error occurred, but the error message cannot be&#39; +
      &#39; displayed because of your browser\&#39;s pop-up blocker.\n&#39; +
      &#39;Please allow pop-ups from this Web site.&#39;);
    }
  };
  this.setMimeType = function(mimeType) {
    this.mimeType = mimeType;
  };
  this.setHandlerResp = function(funcRef) {
    this.handleResp = funcRef;
  };
  this.setHandlerErr = function(funcRef) {
    this.handleErr = funcRef; 
  };
  this.setHandlerBoth = function(funcRef) {
    this.handleResp = funcRef;
    this.handleErr = funcRef;
  };
  this.setRequestHeader = function(headerName, headerValue) {
    this.headers.push(headerName + &#39;: &#39; + headerValue);
  };
  
}
&lt;/textarea&gt;&lt;br /&gt;
1. &lt;span style=&quot;color: #4c1130;&quot;&gt;Copy all code &lt;/span&gt;&lt;span style=&quot;color: #4c1130;&quot;&gt;from above text area &lt;/span&gt;and paste it on a page and save as &lt;span style=&quot;background-color: #fce5cd;&quot;&gt;ajax.js&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. Include this file on your page, where you want to ajax effect.&lt;br /&gt;
&lt;br /&gt;
3. You can use this in js function as following.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; function checkEmail(email){&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; var ajax = new Ajax();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ajax.doGet(&#39;validateUser.php?checkUserEmail=&#39;+email,checkEmailNow,&#39;text&#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
4. Now ajax is object and &lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;ajax.doGet &lt;/b&gt;&lt;/span&gt;means ajax call its doGet function.&lt;br /&gt;
&lt;br /&gt;
5. &lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;validateUser.php&lt;/b&gt;&lt;/span&gt; is your page from where you need to get response.&lt;br /&gt;
&lt;br /&gt;
6. Now &lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;checkUserEmail&lt;/span&gt;&lt;/b&gt; is request where we send user email .&lt;br /&gt;
&lt;br /&gt;
7. &lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;checkEmailNow&lt;/span&gt;&lt;/b&gt; taking response from this page.&lt;br /&gt;
&lt;br /&gt;
8.&amp;nbsp; Now how to use response, check following..&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt; var checkEmailNow = function(str){&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(str == 0){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }else{&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;9. This is ajax function and great function and compatible with all browsers.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10. This is javascript part so work carefully because single error create you problem.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/2130403930998724418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/ajax-library.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/2130403930998724418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/2130403930998724418'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/ajax-library.html' title='Ajax Library '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-7214726415408061576</id><published>2012-10-25T04:59:00.002-07:00</published><updated>2012-10-30T03:28:00.603-07:00</updated><title type='text'>How to show &amp; hide overlay on onclick</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When you display some important data and form like login etc, then you need to overlay hide and show on javascript function onClick.&lt;br /&gt;
&lt;br /&gt;
At following, I am giving proper overlay code.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Javascript :&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&amp;nbsp; There is given javascript function, which used to show and hide overlay through onClick. There is given to function, these are following.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 1.&lt;span style=&quot;color: #741b47;&quot;&gt; &lt;span style=&quot;color: #4c1130;&quot;&gt;function loginForm(){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;contentWrap&quot;).style.display=&quot;block&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; document.getElementById(&quot;overlay&quot;).style.display=&quot;block&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
For showing overlay and content.&lt;br /&gt;
&lt;br /&gt;
2.&amp;nbsp; &lt;span style=&quot;color: #4c1130;&quot;&gt;function loginFormClose(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;contentWrap&quot;).style.display=&quot;none&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;overlay&quot;).style.display=&quot;none&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
For hiding overlay and content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;u&gt;&lt;b&gt;CSS :&lt;/b&gt;&lt;/u&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;Overlay effect shown due to style property, following css used for overlay display.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;.overlay&amp;nbsp; {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; background:#000;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; opacity:0.8;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter:alpha(opacity=80);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; position:fixed;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; top:0px;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bottom:0px;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; left:0px;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right:0px;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; z-index:100;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&lt;br /&gt;&amp;nbsp;.contentWrap {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; position:fixed;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; top:50px;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color:#7F7F7F;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z-index:101;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:100%;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; margin:0 auto&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #4c1130;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Following is total code, just copy from text area and run browser and check how is this working.&lt;br /&gt;
&lt;br /&gt;
&lt;textarea cols=&quot;80&quot; rows=&quot;34&quot;&gt; 
&lt;html&gt;
&lt;head&gt;
&lt;meta name=&quot;google&quot; value=&quot;notranslate&quot; /&gt;
	&lt;style  type=&quot;text/css&quot;&gt;
	.overlay { background:#000; opacity:0.8; filter:alpha(opacity=80); position:fixed; top:0px; bottom:0px; left:0px; right:0px; z-index:100; }
	.contentWrap { position:fixed; top:50px; color:#7F7F7F; z-index:101; width:100%; margin:0 auto }
	.content { background:none repeat scroll 0 0 #FFF; height:100%; overflow:hidden; width:98%; padding:10px; margin-top: 122px;text-align: center;align:justify }
	.login-box { width:100%; float:left }
	&lt;/style&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	function loginForm(){
		document.getElementById(&quot;contentWrap&quot;).style.display=&quot;block&quot;;
		document.getElementById(&quot;overlay&quot;).style.display=&quot;block&quot;;
	}
	function loginFormClose(){
		document.getElementById(&quot;contentWrap&quot;).style.display=&quot;none&quot;;
		document.getElementById(&quot;overlay&quot;).style.display=&quot;none&quot;;
	}
	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div class=&quot;overlay&quot; id=&quot;overlay&quot; style=&quot;display:none;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;contentWrap&quot; id=&quot;contentWrap&quot; style=&quot;display:none;&quot;&gt;
		&lt;div class=&quot;content&quot;&gt;
			&lt;div class=&quot;login-box&quot;&gt;
				Name    : Tilak Raj Yadav&lt;br/&gt;&lt;br /&gt;
				Content : onClick show and hide Overlay css.&lt;br/&gt;&lt;br /&gt;
				Date    : Oct 2012&lt;br/&gt;&lt;br /&gt;
				Code    : CSS, JS, HTML&lt;br/&gt;&lt;br /&gt;
				&lt;div onclick=&quot;loginFormClose();&quot;&gt;
&lt;input type=&quot;button&quot; name=&quot;Clo&quot; value=&quot;Click to close&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;divstyle=&quot;cursor:pointer&quot; &gt;
	&lt;input type=&quot;button&quot; name=&quot;CloseNow&quot; onclick=&quot;loginForm();&quot;  value=&quot;Click to show overlay........................................................................................................................................................................................................................................................................................................................&quot; style=&quot;margin: 249px 110px 0; padding: 42px;text-align: center;&quot;&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;/textarea&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope so it will helpful to you and following is screen shot of working site.&lt;br /&gt;
&lt;br /&gt;
1. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn6TikkV4rREIfzbO5EoHhXub4rFiGuhzkJV9G5cRNaOqK2mNWz7XKahst5D-Lk8a5U-6X3eSQ1yoP7ssvzl1m8enrevUiQg8kT-7v72Y6tNvsJx1fCi7n8WcFWbXiEC0wNjgptTcwJOI/s1600/R0cDD.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn6TikkV4rREIfzbO5EoHhXub4rFiGuhzkJV9G5cRNaOqK2mNWz7XKahst5D-Lk8a5U-6X3eSQ1yoP7ssvzl1m8enrevUiQg8kT-7v72Y6tNvsJx1fCi7n8WcFWbXiEC0wNjgptTcwJOI/s320/R0cDD.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
2.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoPxB2Upfown02rxPnXJeIcqc7PO_2ad-jKVZ9t7_yxwUoGRB8gYCg2zqwoVCJg9dEfeJkF_eDt-zm9r36SDba-_x7xx9k4Pz2gkOADffBo61YZtFUhMA8TO8tULEVg8dd3JPUpekFNtc/s1600/lightshot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoPxB2Upfown02rxPnXJeIcqc7PO_2ad-jKVZ9t7_yxwUoGRB8gYCg2zqwoVCJg9dEfeJkF_eDt-zm9r36SDba-_x7xx9k4Pz2gkOADffBo61YZtFUhMA8TO8tULEVg8dd3JPUpekFNtc/s320/lightshot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
Above is overlay effect showing.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/7214726415408061576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/how-to-show-hide-overlay-on-onclick.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/7214726415408061576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/7214726415408061576'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/how-to-show-hide-overlay-on-onclick.html' title='How to show &amp; hide overlay on onclick'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn6TikkV4rREIfzbO5EoHhXub4rFiGuhzkJV9G5cRNaOqK2mNWz7XKahst5D-Lk8a5U-6X3eSQ1yoP7ssvzl1m8enrevUiQg8kT-7v72Y6tNvsJx1fCi7n8WcFWbXiEC0wNjgptTcwJOI/s72-c/R0cDD.png" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-3768962263055810217</id><published>2012-10-25T00:53:00.001-07:00</published><updated>2012-10-29T02:20:22.228-07:00</updated><title type='text'>Enable For Numeric Value in Input type</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Following script used only enable numeric value in input type.&lt;br /&gt;
&lt;br /&gt;
Allow :&amp;nbsp; only 0 to 9 numeric value.&lt;br /&gt;
&lt;br /&gt;
Allow : backspace, delete, tab and escape&lt;br /&gt;
&lt;br /&gt;
Allow : Ctrl+A&lt;br /&gt;
&lt;br /&gt;
Allow : home, end, left, right&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Script is following, just copy all code from textarea&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;textarea cols=&quot;80&quot; rows=&quot;20&quot;&gt;
&lt;html&gt;
 &lt;head&gt;
  &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;&gt;&lt;/script&gt;
   &lt;script type=&quot;text/javascript&quot;&gt;
    //Only accept numerical value for contact number
    $(document).ready(function() {
     $(&quot;#contactNumber&quot;).keydown(function(event) {
      // Allow: backspace, delete, tab and escape
      if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 ||
        // Allow: Ctrl+A
       (event.keyCode == 65 &amp;&amp; event.ctrlKey === true) ||
        // Allow: home, end, left, right
       (event.keyCode &gt;= 35 &amp;&amp; event.keyCode &lt;= 39)) {
         // let it happen, don&#39;t do anything
         return;
      }
      else {
       // Ensure that it is a number and stop the keypress
       if ((event.keyCode &lt; 48 || event.keyCode &gt; 57) &amp;&amp; (event.keyCode &lt; 96 || event.keyCode &gt; 105 )) {
        event.preventDefault();
       }  
      }
     });
    });
   &lt;/script&gt;
 &lt;/head&gt;
 &lt;body background=&quot;&quot;&gt;
  &lt;input type=&quot;text&quot; id=&quot;contactNumber&quot; name=&quot;contactNumber&quot; style=&quot;width: 440px; height: 40px; border: 1px double goldenrod; margin: 295px 0px 0px 469px; border-radius: 10px 10px 10px 10px; background: none repeat scroll 0% 0% gold; font-weight: bold; color: saddlebrown; font-family: arial;&quot; value=&quot;&quot; placeholder=&quot;Please enter your contact number !&quot;&gt;
 &lt;/body&gt;
&lt;/html&gt;
&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
This script help you, when you made input type text for pone number.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;This enable only for numeric value. &lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/3768962263055810217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/enable-for-numeric-value-in-input-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/3768962263055810217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/3768962263055810217'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/enable-for-numeric-value-in-input-type.html' title='Enable For Numeric Value in Input type'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-3384145555257795988</id><published>2012-10-19T04:37:00.000-07:00</published><updated>2012-10-19T04:37:00.527-07:00</updated><title type='text'>How to read special character in php</title><content type='html'>&lt;style&gt;
b{ color:#660033; font:&quot;Times New Roman&quot;, Times, serif; font-size:12px; padding:0px 0px 0px 10px; }
p{ color:#000000;}
.maiwwn{ color:#660000;}
.vattttttt{ color:#330033; font-size:22px; font-family:&quot;Times New Roman&quot;, Times, serif; margin-left:40px;}
&lt;/style&gt;
&lt;p&gt;
Some time you store data in different language like French, Spanish etc.When you fetch this data on your page then the special character are not shown as they save in data base.They shows on page as question mark etc,this is problem is utf encode. If you are using xampp version of 1.7.3 and above then there is no problem because when you are fetching data from database then it&#39;s return encoded data then data shows in right way.But when your special character are not shown. So don&#39;t worry and no need to install latest xampp/wampp.Following are the special characters and method how to show this in our page.&lt;/p&gt;
&lt;div&gt;
&lt;b&gt;a) &lt;u&gt;Umlauts and accents:-&lt;/u&gt;&lt;/b&gt;  Â Ã Ä Æ Ç È É Ñ  Õ Ö Ø Ù Ú Û Ü ß  ã  ñ ò ó ô œ õû ü ÿ&lt;br/&gt;
&lt;b&gt;b) &lt;u&gt;Punctuation:-&lt;/u&gt;&lt;/b&gt;  ¿ ¡ « » § ¶ † ‡ • - – —&lt;br/&gt;
&lt;b&gt;c) &lt;u&gt;Commercial symbols:-&lt;/u&gt;&lt;/b&gt;  ™ © ® ¢ € ¥ £ ¤&lt;br/&gt;
&lt;b&gt;d) &lt;u&gt;Greek characters:-&lt;/u&gt;&lt;/b&gt;  a ß ? d e ? ? ? ? µ ? p ? s t ? f ? ?G ? T ? ? ? S F ? O&lt;br/&gt;
&lt;b&gt;e) &lt;u&gt;Math characters:-&lt;/u&gt;&lt;/b&gt;  ? ? ? v - ± 8 ˜ ? = ? = = × · ÷ ? ? ? ? ? ? ? ? ?&lt;br/&gt;
&lt;/div&gt;
&lt;p&gt;For that there is following ways for showing special characters.&lt;/p&gt;
&lt;div class=&quot;maiwwn&quot;&gt;
1. utf8_encode() &lt;br/&gt;
2. header(&#39;Content-Type: text/html; charset=utf-8&#39;);&lt;br/&gt;
&lt;/div&gt;&lt;br/&gt;&lt;br/&gt;

1. &lt;b style=&quot;color:#66019C;font-size:14px;&quot;&gt;&lt;u&gt;utf8_encode():-&lt;/u&gt;&lt;/b&gt; This is used with variable, for example if there is a variable&lt;/br&gt;
&lt;div class=&quot;vattttttt&quot;&gt;$userPassword = &quot;#ÛÜõû!&quot;;&lt;/div&gt;
if these special character not print in your page then you need to used this function as following.&lt;br/&gt;
&lt;div class=&quot;vattttttt&quot;&gt;echo utf8_encode($userPassword); &lt;/div&gt;
Now it&#39;s print #ÛÜõû! on your page.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;

2. &lt;b style=&quot;color:#66019C;font-size:14px;&quot;&gt;&lt;u&gt;charset=utf-8:-&lt;/u&gt;&lt;/b&gt; Another way is just place this code on your page at the top once time header(&#39;Content-Type: text/html; charset=utf-8&#39;); , then your special character shows on your page.&lt;br/&gt;
&lt;div class=&quot;vattttttt&quot;&gt;header(&#39;Content-Type: text/html; charset=utf-8&#39;); &lt;/div&gt;
But you can use utf8_encode() it&#39;s more predictable and accurate.
&lt;br/&gt;&lt;br/&gt;
you can use both of this but I suggest you you can use &lt;b style=&quot;color:red&quot;&gt;utf8_encode()&lt;/b&gt; and it&#39;s solve your problem. Use this with variable where you wants to echo.</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/3384145555257795988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/how-to-read-special-character-in-php.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/3384145555257795988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/3384145555257795988'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/how-to-read-special-character-in-php.html' title='How to read special character in php'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8075411850070429089.post-5502607353980430705</id><published>2012-10-19T04:31:00.000-07:00</published><updated>2012-10-19T04:31:22.064-07:00</updated><title type='text'>Difference between Foreach and For Loop:-</title><content type='html'>&lt;style&gt;
.mainmenu{
 color:#151B8D;
 font:&quot;Times New Roman&quot;, Times, serif;
 padding:0px 0px 0px 5px;
        font-size:16px;
}
.submenu{
 color:#806517;
 padding:5px 0px 5px 20px;
}
.loop{
 color:#0000FF;
        padding:5px 0px 5px 30px;
}
.array{
 color:#000033;
 font:Arial, Helvetica, sans-serif;
        padding:5px 0px 5px 90px;
}
&lt;/style&gt;
&lt;div class=&quot;mainmenu&quot;&gt;1.&lt;u&gt;&lt;b&gt; Foreach Loop:- Details are following.&lt;/b&gt;&lt;/u&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div class=&quot;submenu&quot;&gt;
a) Foreach loop used when you have an array, without array it&#39;s not worked.&lt;br/&gt;
b) Loop working at the end of array count. For example an array have 5 value then loop run 5 times.&lt;br/&gt;
c) Syntax is following.&lt;br/&gt;
&lt;/div&gt;
&lt;div class=&quot;loop&quot;&gt;
$array = array(&quot;Surinder&quot;,&quot;Rahul&quot;,&quot;Manoj&quot;,&quot;Bharti&quot;,&quot;Rana&quot;,&quot;Manish&quot;);
Foreach($array as $name )&lt;br/&gt;
{&lt;br/&gt;
echo &quot;Employe Name is &quot;.$name.&quot;.&quot;;&lt;br/&gt;
}&lt;/div&gt;
&lt;div class=&quot;array&quot;&gt;
This will print as following.&lt;br/&gt;
Employe Name is Surinder.&lt;br/&gt;
Employe Name is Rahul.&lt;br/&gt;
Employe Name is Manoj.&lt;br/&gt;
Employe Name is Bharti.&lt;br/&gt;
Employe Name is Rana.&lt;br/&gt;
Employe Name is Manish.&lt;br/&gt;&lt;br/&gt;
&lt;/div&gt;
&lt;div class=&quot;mainmenu&quot;&gt;2. &lt;u&gt;&lt;b&gt;For Loop:- Details are following.&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;submenu&quot;&gt;
a) For loop used according to condition.&lt;br/&gt;
b) Loop working at the end of given condition.&lt;br/&gt;
c) Syntax is following.&lt;/div&gt;
&lt;div class=&quot;loop&quot;&gt;
$array = array(&quot;Surinder&quot;,&quot;Rahul&quot;,&quot;Manoj&quot;,&quot;Bharti&quot;,&quot;Rana&quot;,&quot;Manish&quot;);&lt;br/&gt;
For($i=0;$i&lt;6;$i++)&lt;br/&gt;
{&lt;br/&gt;
echo &quot;Employe Name is &quot;.$array[$i].&quot;;&lt;br/&gt;
}&lt;br/&gt;
At the place of 6,You can used count array function.&lt;br/&gt;
&lt;/div&gt;
&lt;div class=&quot;array&quot;&gt;
This will print as following.&lt;br/&gt;
Employe Name is Surinder.&lt;br/&gt;
Employe Name is Rahul.&lt;br/&gt;
Employe Name is Manoj.&lt;br/&gt;
Employe Name is Bharti.&lt;br/&gt;
Employe Name is Rana.&lt;br/&gt;
Employe Name is Manish.&lt;br/&gt;
&lt;/div&gt;
These are the difference between Foreach and for loop.</content><link rel='replies' type='application/atom+xml' href='http://ibmphp.blogspot.com/feeds/5502607353980430705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ibmphp.blogspot.com/2012/10/difference-between-foreach-and-for-loop.html#comment-form' title='49 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/5502607353980430705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8075411850070429089/posts/default/5502607353980430705'/><link rel='alternate' type='text/html' href='http://ibmphp.blogspot.com/2012/10/difference-between-foreach-and-for-loop.html' title='&lt;b style=&quot;color:#7E2217; padding:0px 0px 0px 0px;&quot;&gt;&lt;u&gt;Difference between Foreach and For Loop:-&lt;/u&gt;&lt;/b&gt;'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02975351313550017497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>49</thr:total></entry></feed>