Re: Email Article, Print Article

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux