i want to pass value from php page to another using url, values are encrypted using md5,so I get in url http://localhost/1.php?id=8f14e45fceea167a5a36dedd4bea2543 that's what i want but in my second page and when i use $_GET["id"] I can't see the value,just md5 value,so there are any function to decrypt this md5 value? Thank you.
1Page :
<script type="text/javascript">
function fn(a)
{
var table = document.getElementsByTagName("table")[0];
//var secondRow = table.rows[a];
//alert(secondRow.id );
var res=table.rows[a].cells[0].innerHTML;
alert(res);
}
</script>
<table class="table " id="tableId">
<?php
$i=0;
while ( $i<= 10) {
echo "
<tr onclick=\"location.href='2.php?id=".md5($i)."'\">
<input type='hidden' name='cid' value='11' />
<td>$i</td>
</a></tr>";
$i++;
}
?>
</table>
</body>
2Page :
<?php
print_r($_GET["id"]) ; //result :8f14e45fceea167a5a36dedd4bea2543
?>