To get you started, find the script that does the mailing and look for some lines that start with 'print'. You should see a line printing a header of some sort. After that, the stuff printed from the script is basically sent verbatim to the browser. So if you do a 'view source' on the final page, you should be able to match that up with the stuff in the print statements.
If you can match these things up, you can start to modify the script. The simplest thing to do would be to put the HTML from the rest of your site pages into the script. For example, you might want to put in print statements to print out the HTML for your site header and your footer.
As the other posters said, maintaining print statements like this quickly becomes tiresome. If you find you need to do this often, look into some templating options so you can pull the HTML out of the script itself.
Good luck!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.