I have a page that is dynamically built by the database. For each thing that is built dynamically, I want to have a link that pops up a new window and that new window will populate a list from the database, based on which item on the first page was clicked. I have tried POST methods and posting the variable to the url (which I know is dangerous). The other thing that makes this unique is that the link that is clicked is really not a link to a page, but I do some Javascript to call a function that opens a new window and a new php page because it would be silly to open a whole new page for just a list. How do I do this? If you need more clarification I will do my best to make it clearer.
I am building a table and it will have links like this:
<td><a href="#" style="font-weight:normal; font-style:italic" onclick="function()">Do Stuff</a></td>
function function(){
window.open("page.php", "blank"," toolbar=no, width=400, height=350, top=50, left=50, scrollbars=yes");
}
The function() will open a new window with a new php page. The question is how to get the php variable over to the new window.