If I have a PHP page that contains the following:
<?php $showLink = true; ?>
and then using AJAX load in some content with the following:
<?php if($showLink ) { ?>
<a href="#">This link should appear if the variable exists</a>
<?php } ?>
The loaded page cannot see the variable in the parent page… Any ideas why?
I’ve tried using both sessions and define and the same problem happens, and also tried setting the cache to false in the ajax settings.
Really confused about this…
and