November 15th, 2012LWMW: How to pass PHP var to the content of a Modal Window
Knowledge Base support case for Likno Web Modal Windows Builder, abstracted and stripped of all user’s private info.
Initial Email From: Jack
Initial Email Subject: passing php variables
Support Case Month: October 2012
Hello there,
Tried to find a solution in the knowledge base but really couldn't find a way to help.
Got a simple php var that I'd like to send using Ajax rules to the content Modal page, how the heck do I do this ?
a simple url would be <a href="url.php?var=$var">
Has to be easy but searching a way for hours, I'd rather let you guys tell me how 🙂
Thanks in advance
JackRelated URL: http://www.e-listing.ch/modaltest.php
Reply From: Likno Customer Support
Dear Jack,
You need to use the “page links” modal method:
This will open the href of your selected links within a modal window. Then in your page you can add links like this:
<a href="url.php?var=<?php echo $var; ?>" target="Modal_Window_1_single">
There is also a JavaScript API alternative if you prefer, but I believe this is the easiest way to do it.
Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter
Reply From: Jack
Excellent and indeed works fine.
Thank you
Regards
Jack
Tags: ajax, API, content, href, JavaScript, jquery, link, modal, modal window, page, PHP, var, website, window