Forum Moderators: coopster

Message Too Old, No Replies

print txt file

         

yllai

9:31 am on Dec 20, 2006 (gmt 0)

10+ Year Member



Hi,

If I create a form with php script, then let user click submit button. After click the submit button, I want a txt file (summary of info that user submitted) to be pop up and let user print a copy...can this be done with php or gather with other languages?

thanks.

mcibor

10:54 am on Dec 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You cannot force the txt file to be printed. html yes, with javascript window.print()

Or you can create pdf, then you have control over the layout and pages, but still the user would have to click print manually

Michal

PS. If the printer is a server printer, then you can use [php.net...]
functions