how to pass a checkbox value using <a href
<p>example.php ~ when i check the checkbox in example.php webpage.. then i click the print button, the value will be pass on example1.php
    

<pre><code>if($items) {    
    foreach($items as $i)
    {
        print"&lt;input name='checkbox[]' type='checkbox' id='checkbox[]' value='$i-&gt;logi_id'&gt;";
    }
}

echo "&lt;a href='example1.php?checkbox=" . $checkbox . "'&gt;&lt;input type='button' name='print' id='delete' value='Print'&gt;&lt;/a&gt;"
?&gt;
</code></pre>

<hr>

<p>example2.php</p>

<pre><code>&lt;?php
$keyword = $_REQUEST['keyword'];
$keycateg = $_REQUEST['keycateg'];
$print = $_REQUEST['print'];    
$checkbox = $_REQUEST['checkbox']; 
$count = count($_REQUEST['checkbox']);

if($print){
    for($i=0;$i&lt;$count;$i++){    
        $del_id = $checkbox[$i];
        $sql = "select * FROM sampleDB WHERE logi_id='$del_id'";
        $result = mysql_query($sql);
    }
}
?&gt;
</code></pre>
