I am having difficulty passing/receiving a php variable when I open a new window using the window.open() function.
Here's my code:
User clicks on a link on page:
<a href="javascript:go(<? echo "$id" ?>)"><? echo "$name" ?></a></font></td>
here's the javascript function (same page):
function go(id){
myurl = 'member.php?myid=' + id;
window.open(myurl,'get','width=645,height=450,resizable=1,scrollbars=yes');
}
I want to keep using the $id variable for the page that will load via window.open() - how do I access the darn thing?
Here's my code:
User clicks on a link on page:
<a href="javascript:go(<? echo "$id" ?>)"><? echo "$name" ?></a></font></td>
here's the javascript function (same page):
function go(id){
myurl = 'member.php?myid=' + id;
window.open(myurl,'get','width=645,height=450,resizable=1,scrollbars=yes');
}
I want to keep using the $id variable for the page that will load via window.open() - how do I access the darn thing?