title: Searching and retrieving value from database through checkbox selection
body: <p>I need help ... that too from scratch as now am learning php. just variable declaration i am learning. </p>
  
  <p>I have created a form with 5 check boxes. when i select any 1 or any 2, 3.. or any combination, i should get the data which is already stored for that option in MySQL database.</p>
  
  <p>My form is this:</p>
  
  <pre><code>&lt;form method="post" action="search.php" name="search_form" onsubmit="return checkCheckBoxes(this);"&gt;
           &lt;input type="checkbox" name="search1" value="qwerty_keypad" id="search1"&gt;QWERTY Keypad
  
  
           &lt;input type="checkbox" name="search2" value="touch_screen" id="search2"&gt; Touch Screen
  
  
           &lt;input type="checkbox" name="search3" value="usb" id="search3"&gt; SUB Drive
  
  
           &lt;input type="checkbox" name="search4" value="mobile_tracker" id="search4"&gt;Mobile Tracker
  
  
           &lt;input type="checkbox" name="search5" value="Backup" id="search5"&gt;Phone backup on MMC
  
  
           &lt;input type="submit" value="Search" /&gt;         &lt;/form&gt;
  </code></pre>
  
  <p>what i should write in search.php. </p>
  
  <p>Please help me ... please
  Thanks in advance</p>