without form link data post

0
310
<strike>
    <a href="#" onClick="$.post('search.php',{ cat: 'John', time: '2pm'},function(data){window.location.href='search.php';} );">submit</a> 
 search.php page make where you find data 
 if($_REQUEST['cat']!='')
{
    setcookie("productCat",$_REQUEST['cat'], time()+60 * 60 * 24 * 30); 
}
else
{
echo $_COOKIE['productCat'];
}
</strike>