PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
My question is: Is it possible to pass some variable to the new opened window (some number like ID for example) so that I can use this variable in the new opened page. (to run this number against MySQL database for example).
I know it can be done if I do something like index.php?id=1234, and then grab it with $_GET. But I'd rather have modal window. Can anybodu help?
function do_it(){
var qstr="";
for(var in arguments){
if(qstr.length) qstr+="+";
qstr+=var;
}
window.showModalDialog("index.php?"+qstr,.............);
}
.... onclick="do_it('1st',2,'third','some other param')".....
and then retreive the parameters using $argv array: