Is this possible?
What I am trying to accomplish:
- Create a html template in the form of a string
- Inside the string, add a script, something like
include 'php/countries.php'; - Echo entire string to html page
Everything but the 2nd step works. I would like to see a php file echo the question being asked, onto the html page, including an echo from another php file.
EXAMPLE
echo "<div id=\"first\"><?php include \'countries.php\'; ?></div>";
I have tried the above, as well as the below:
EXAMPLE
echo "<div id=\"first\">".include 'countries.php'."</div>";
Would this require eval?
Any and all help is appreciated.
echo "<div id=\"first\">"; include 'countries.php'; echo "</div>";