ShowModalDialog, background php how to receive

Source: Internet
Author: User
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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.