Jump to content


Photo

email php page


  • Please log in to reply
1 reply to this topic

#1 delmardata

delmardata
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 19 September 2006 - 01:26 AM

I have a shopping cart application that creates an order from the cart.  When the user 'confirms', the order header record (one) and order detail records (many) are created. A 'printer friendly' page is generated for the user to print a copy of the order.  I would like the ability to email this page.  In my past programming world I could print the page to a text file.  Then I could use something like the php mail function mail($to, $subject, $message); where $message is the text file.  Is it possible to email a page under the circumstances I describe?  Is there a PHP command to print to a file instead of print to printer? Or is there some simple way to do this?

Dennis
del mar data systems
dennis@windowareaccounting.net

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 September 2006 - 03:21 AM

do you use a database or files?

post your current code that generates the printer page.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users