Any body help me to get click value in another page using sessions
my code is

<table class="table table-condensed">
        <thead>
            <tr>
                <th>S No</th>
                <th>Student Name</th>
                <th>Standard</th>
                <th>branch</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
                    <?php
$candarr=explode(",",$cand_id_mul);
$count=count($candarr);


for($i=0;$i<$count;$i++){

$cand_id=$candarr[$i];


$rt=mysql_query("select * from  candidate where cand_id='$cand_id'")or die(mysql_error());
$count_rt=mysql_num_rows($rt);
while($row_rt=mysql_fetch_array($rt))
{
$cand_id=$row_rt['cand_id'];
$_SESSION['cand_id']=$cand_id;
echo $cand_id;



?>

            <tr>
                <td><?php echo $i;    ?></td>
                <td><?php echo $row_rt['first_name'];  ?></td>
                <td><?php echo $row_rt['standard'];  ?></td>
                <td><?php echo $row_rt['branch'];  ?></td>
                <td>
    <ul class="pager">
<li class="previous">
<?php 


  ?>
    <li><a href='preview.php?cand_id=<?php echo $cand_id; ?>' onClick="return confirm('Are you sure you want to View?')">View</a></li>
</li>
</ul>

            </tr>
                            <?php } 



                            }  ?>

        </tbody>
    </table>

If you reword your qestion you may get more help. It is a real chore to read and doesn't explain things very well. Try and be very specific, unambiguous and use full, clear sentences.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.