Page 1 of 1

call lightbox from PHP

Posted: Thu Sep 05, 2019 7:39 am
by DWG
Pablo ,
first time i used the forum , got a question about a lightbox created in W15 and I want to call this from inside
php code that is included in the site HTML
<?php include_once("./incl_functions.php"); ?>

functions called using 'user defined var's' works great for example MY_COUNT = <?php incl_count();?> does the work
I even can inside some menus change the name using PHP ..even get values from an database

now i followed a course PHP last year with bootstrap and the learned code is getting a mess/complex as php with html,java is mixed
and bootstrap also shows sometimes bad results
that's why I prefer to work with W15 as it is completely under control using breakpoints and even better then bootstrap

the goal is do the design in W15 and do the other code seperated using PHP
so now I want to call an W15 object from inside incl_functions in this case a popup mesg that gives some info

Hopefully this is a bit clear

Best Regards ,
Georges

Re: call lightbox from PHP

Posted: Thu Sep 05, 2019 9:06 am
by Pablo
It is not possible to trigger a lightbox from PHP code.
PHP code is executed on the server, a lightbox can only be triggered via JavaScript (on the browser side)