php ShowModalDialog parameter $_get
Title, click on a link, call window.showModalDialog, if you want to pass a parameter, then the PHP background how to receive
For example:
var uri = "Houtai.php?workid =" + WorkID;
var answer = window.showModalDialog (URI, ' ', ' scroll:no;center=yes;help=no;dialogwidth=800px;dialogheight=600px; ', ' );
It's OK to write like this. If possible, houtai.php how to get the parameter workid. If not, you should pass the parameter workid to hotai.php. Thank you.
Note: I used the $workId in houtai.php = $_get[' WorkID ']; Parameter WorkID not be reached.
If the pop-out window changes to window.open, it can be obtained, but the requirements must be showmodaldialog, modal.
Reply to discussion (solution)
OK!
In houtai.php $workId = $_get[' WorkID '); Parameter WorkID not be reached.
is not supposed to get, do you know where the problem is?
Do you use $_get[' workid_ ' to see if you get it?
Original your var uri = "Houtai.php?workid =" + WorkID;
Superfluous to write more space!
Thank you, moderator, sure enough.