Jump to content


Photo

Page Code to Variable?


  • Please log in to reply
2 replies to this topic

#1 barkster

barkster
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 30 August 2006 - 06:06 PM

Use file_get_contents if you wenat to store the content of the file in a variable.

#3 barkster

barkster
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts

Posted 30 August 2006 - 06:15 PM

Thanks for the help just what I needed.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users