Page Code to Variable?
2 replies to this topic
Posted 30 August 2006 - 05:52 PM
I'm trying to send out a bulk email and I have a page designed that I want to use as the body of the html. How do I set my body variable to the code of the page. I tried $body = include('page.php') but all that did was display my page. This has to be very simple. Thanks
Posted 30 August 2006 - 06:06 PM
Use file_get_contents if you wenat to store the content of the file in a variable.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users