Forum Moderators: coopster

Message Too Old, No Replies

Sending all or part of an existing html page as email.

         

nelsonm

5:48 pm on Jan 14, 2011 (gmt 0)

10+ Year Member



Hi all,

I have an exiting html.php page that generates a table list after some user input.

I would like to be able to email either the whole page or just the generated table list when a email button is clicked on the page.

I know i can duplicate and reformat the table list code and put into a php $messagebody variable to pass to the php mail function.

Is there a way to use dom to grab a section of existing the html page, like the table list section, and stuff it into the $messagebody variable?

coopster

3:06 pm on Feb 3, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Regular expression [php.net]? Or perhaps the tidy extension [php.net]?