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

<table class="table table-condensed">
                <th>S No</th>
                <th>Student Name</th>



$rt=mysql_query("select * from  candidate where cand_id='$cand_id'")or die(mysql_error());
echo $cand_id;


                <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>
    <ul class="pager">
<li class="previous">

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

                            <?php } 

                            }  ?>


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.