I have a link that targets a div tag
<a href="#" onclick="javascript:ajaxpage('mypage.php?cid=<?PHP echo $variable1; ?>', 'contentarea');" style="cursor:hand" title="<?PHP echo $variable2; ?>"><?PHP echo $variable3; ?>
The link works great and does what it is supposed to do, however i need $variable1 to go to the url bar so i can use it in a diffrent query. If I use href="#?cid=$varibale1" before the on click event, it does go to the URL but then the onclick event doesn't work. I hope this makes sense, can anyone help me out with this? Is there a way to pass the onclick event variables to the url without having to use the href="#?cid=$varibale1"?
Thanks
in advance