delete rows from table corresponding to selected checkboxes on click on delete
===

I am using codeigniter framework for my website. In views i have a php file which displays a table like this

                #        Name
    
    checkbox	1 	Aanchal	
                                                     
    
    checkbox	2 	Abhijeet 

Now i want to get id of all the selected checkboxes (can be multiple also) such that when the user click on delete button present in navigation bar, the selected entries get deleted.

Here is the code i am using in views:

    <header class="jumbotron subhead" id="overview">
        <div class="subnav">
    	<ul class="nav nav-pills">
    		<li><a href="controller 1">Home</a></li>
    		<li><a href="controller 2">Add</a></li>
    		<li><a href="controller 3">Edit</a></li>
    		<li><a href="controller 4">Delete</a></li>
    	</ul>
        </div>
    </header>
    
    <div id="content" style="height: 500px; width: 800px">
    	<table class="table table-striped">
    		<thead>
    		<tr>
    		<th></th>
    		<th>#</th>
    		<th>Name</th>
    		</tr>
    		</thead>
    		<tbody>
    			<?php
    		for($i=0;$i<sizeof($json_string);$i++)
    		{		
    		    $sno = $i + 1;
    		?>
    		<tr>
    		<td><input type="checkbox" id=<?php $sno?> value=<?php $sno?> /><br />
    		</td>
    		<td><?php print_r($sno)?></td>
    		<td><?php print_r($json_string[$i]->fName);
    		if(isset($json_string[$i]->lName))
    		{
    			print_r($json_string[$i]->lName);
    		}
    		else
    			print_r("");
    		?>
    		</td>
    	</tbody>
            </table>
	
controller 4 will be having code to delete the selected entries from string, so what should i do to get and pass the selected checkboxes' ids to controller 4
