Re: Email Article, Print Article
| From: | Micah Stevens | Date: | Fri, 30 Sep 2005 17:57:03 +0000 |
| Subject: | Re: Email Article, Print Article | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40438@lists.php.net to get a copy of this message | ||
No, but it's pretty straightforward, just have each link to another script
along with a get variable that defines which article (assuming they're in a
database or something)
email_article.php?article=$articleID
print_article.php?article=$articleID
email_article.php: (pseudo code)
<?php
// first get article from storage
// setup mail_mime session (Pear class)
// attach article to friendly email, or insert directly.
// send it
?>
print_article.php:
<?php
// get article from storage
// print it on screen without headers and stuff you don't want to print.
?>
Done..
-Micah
On Friday 30 September 2005 10:50 am, Tramelw@aol.com wrote:
> Hello,
>
> I am running an article-based site, where I would like to add two buttons:
> print this article and email this article.
>
> Does anyone know where I could look to find out how to program this code
> into my article.php page?
>
>
> Thanks in advance,
>
>
> Eddie Wonder