Greetings, this is my problem.
I'm far from a versed coder on php but try to do my best with wht i have.
this is what i have.
i've a mailer on php that sends a bunch of variables to the user depending on the request.
the mail that u get has a html, css styled page that contains the info the user requested and, u know, promotional ads, institucional head banner and stuff... a predefined format.
the thing is i tend to change my mind a lot about looks and it seems to me to be quite a dragg to make my format and then put a lot of backslashes every coutation mark on the code so i'm able to import the format on the body of the mail. (am i getting my self clear? english is... just... so... tree twisted witches watches each switch of tree swiss swatch watches)
on the end i finish with something like:
$varHeaders = "something";
$varBody_content = "something else";
$varSubject = "other something";
$varTo = "thepoorbastardi'msendingthemail";
$varBody_format = "lots of html code with the \ every single time a \" is on the text"
."and somewhere on the text such \"variables\" as <span class=\"content\" >$varBody_content</span>"
." or maybe <div id=\"to\">$varTo</div> "
."You get the idea";
So, my question after all this is: How can i get a html file that has php vars stated as $something as the value of another variable with out have the need of translate it into php?
on other words, is there a way to:
$varNeed_htmlpage = something('myhtml.html');
or something that can do the \ for me.
thanks a lot.
I'm far from a versed coder on php but try to do my best with wht i have.
this is what i have.
i've a mailer on php that sends a bunch of variables to the user depending on the request.
the mail that u get has a html, css styled page that contains the info the user requested and, u know, promotional ads, institucional head banner and stuff... a predefined format.
the thing is i tend to change my mind a lot about looks and it seems to me to be quite a dragg to make my format and then put a lot of backslashes every coutation mark on the code so i'm able to import the format on the body of the mail. (am i getting my self clear? english is... just... so... tree twisted witches watches each switch of tree swiss swatch watches)
on the end i finish with something like:
$varHeaders = "something";
$varBody_content = "something else";
$varSubject = "other something";
$varTo = "thepoorbastardi'msendingthemail";
$varBody_format = "lots of html code with the \ every single time a \" is on the text"
."and somewhere on the text such \"variables\" as <span class=\"content\" >$varBody_content</span>"
." or maybe <div id=\"to\">$varTo</div> "
."You get the idea";
So, my question after all this is: How can i get a html file that has php vars stated as $something as the value of another variable with out have the need of translate it into php?
on other words, is there a way to:
$varNeed_htmlpage = something('myhtml.html');
or something that can do the \ for me.
thanks a lot.