kylefox / jquery-modal

The simplest possible modal for jQuery
http://jquerymodal.com/
Other
2.61k stars 664 forks source link

How to open modal dialog from window.location.href #263

Open rapolonio opened 4 years ago

rapolonio commented 4 years ago

I've been struggling trying to send some values to a page and open it in a modal dialog box but it has been impossible for me.

I had to use Javascript because I need to send some values to another page and using Javacript is the only way to do it.

This is my code:

window.location.href = "op_client_order.php?user="+vuser+"&option="+plato+"&dia="+fec+"&vkey="+varkey, rel:"modal:open";

Using the code above the page is open into the modal but none of the values are sent.

I just need to know how to pass the values to op_client_order.php and open it in a modal window.

KOEI5113 commented 4 years ago

Hi there.

If your page opened in modal then it should success pass value to op_client_order.

Maybe you can give us a screenshot about op_client_order.php and set op_client_order.php to something like:

var_dump($_GET); die();