|
Posted by Shelly on 11/02/07 20:17
Darko wrote:
> On Nov 2, 6:56 pm, Good Man <he...@letsgo.com> wrote:
>> "Shelly" <sheldonlg.n...@asap-consult.com> wrote
>> innews:13imgt9jf0fqrcd@corp.supernews.com:
>>
>>> Christoph Burschka wrote:
>>>> shimmyshack wrote:
>>
>>>>> but your table should have table heading and body as well to be
>>>>> properly accessibile.
>>
>>>> Also <strong> instead of <b>, I should think...
>>
>>> <b> works.
>>
>> yep, but <strong> is semantically correct, and the HTML 'should' be
>> based
>> on semantics and be using CSS used to style it.
>>
>> blah blah, have a good weekend!
>
> Yes, I'm afraid Good Man is right. It's document logic that HTML
> should be telling, not document style. The styles should be based on
> CSS.
>
> As for the whole concept, I find it better to have a separate file,
> i.e. mail template, that you can file_get_contents from, replace a
> placeholder with the generated table, and then send. You could
> generate table either the way you already work or doing by Christoph
> Burschka's advice, using the php's buffering, which I find nicer. You
> can also use heredocs, which are a neat feature:
> <?php
> $html = <<<HERE_IS_END
> <html>
> <head>
> <title>$title</title>
> </head>
> <body>
> __PLACEHOLDER__
> </body>
> </html>
> <<<HERE_IS_END;
> // generate your $table
> $html = str_replace( $html, "__PLACEHOLDER__", $table );
> mail( ... );
That is a very good idea for sending an entire page as included email. What
I needed was simply a table and it was easy to construct inline. However, I
will keep this in mind. Now for two questions:
1 - Can you expand on the "<<<HERE_IS_END"?
2 - Once the form is filled out and the submit button is clicked, is there
any way to capture the code that page WITH the filled in fields so that I
could send that filled-in page?
htmlMimeMail will send an attachment as well as sending html code (or text).
However, the file on the disk is not a filled in page.
Shelly
[Back to original message]
|