Forum Moderators: coopster
Is it possible to execute the contents of an include after the page loads?
I want to be able to "grab" a variable present in the page from within the include but am unable to do it.
Thanks for any pointers.
I want to be able to "grab" a variable present in the page from within the include but am unable to do it.
You should be able to unless you are including the file as an url in which case the code will be interpreted before it is included.
How are you including the file? Can you give us an example?
[edited by: eelixduppy at 9:43 pm (utc) on Nov. 7, 2007]
Bingo, that is it. I was including the file like:
<?php include('http://www.mysite.com/folder1/includes/myinclude.php');?>
I changed it to <?php include('../includes/myinclude.php');?>, and it works.
Thank you very much