Hi
below code prints tempnum correctly but not tempname. Kinly look into this.
<html>
<head>
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".mylinktempnum").click(function(){
alert($(this).attr('href').match(/tempnum=([0-9]+)/)[1]);
*alert($(this).attr('href').match(/tempname=([a-z]+)/)[1]);*
});
});
</script >
</head>
<body>
</body>
</html>
<?php
<a class=\"mylinktempnum\" href=\"home.php?tempnum=$num&tempname=$name\"></a>
?>