receipt

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fiX'me^i'm'BroKEn
Forum Newbie
Posts: 3
Joined: Tue Aug 18, 2009 6:42 am

receipt

Post by fiX'me^i'm'BroKEn »

hi..gud day to all.. i need some hand on the codes to print or generate receipts using php....please i really need it..any help will do..hope to hear from any of you soon...thanks a lot..godbless...
User avatar
mrvijayakumar
Forum Commoner
Posts: 58
Joined: Tue Aug 18, 2009 12:39 am
Location: Chennai city, India
Contact:

Re: receipt

Post by mrvijayakumar »

Hi,
I hope this will help u to print receipts. Printing option can be enabled by using JavaScript. Option to print is

Code: Select all

<a href="JavaScript&#058;window.print();">Print this page</a>
. Design one html page in receipt format (U can use dynamic pages also). Then add the above code on your page at top or bottom. Once u click print, page will be printed in receipt format u had designed.

Reply me once u get answer or any doubt appears. All the best.
fiX'me^i'm'BroKEn
Forum Newbie
Posts: 3
Joined: Tue Aug 18, 2009 6:42 am

Re: receipt

Post by fiX'me^i'm'BroKEn »

thanks a lot sir for the information...i haven't applied it yet..but ill tell you sir whenever our group successfully printed receipt....its for our thesis study...thanks a lot sir... godbless...
fiX'me^i'm'BroKEn
Forum Newbie
Posts: 3
Joined: Tue Aug 18, 2009 6:42 am

Re: receipt

Post by fiX'me^i'm'BroKEn »

uhm...what's the use of javascript in generating the receipt in php?
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: receipt

Post by Ollie Saunders »

You haven't really given us anything to go on here. Are the receipts being printed in a retail environment, being emails, or displayed on a web page? And where's the data that the receipt will be generated from coming from?
Post Reply