"Print" action button and "save as"action button....how to?

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
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

"Print" action button and "save as"action button....how to?

Post by azhan »

hey guys,

Im getting familiar with the php programming now....but i still not know how to create a button that could initiate the print function and a button that could "save as"the current display information on the page.

I found this....can i use this?

Code: Select all

 
 
<input type="Button" name="printit" value="print" onclick="javascript&#058;window.print();">

thanks
azhan
User avatar
pavanpuligandla
Forum Contributor
Posts: 130
Joined: Thu Feb 07, 2008 8:25 am
Location: Hyderabad, India

Re: "Print" action button and "save as"action button....how to?

Post by pavanpuligandla »

but i still not know how to create a button that could initiate the print function and a button that could "save as"the current display information on the page.
for printing it will be okay,
onclick="javascript:window.print()";

but i didnt get u wat u said about save as?
u mean to save ur web page or waht?
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

Re: "Print" action button and "save as"action button....how to?

Post by azhan »

pavanpuligandla wrote:
but i still not know how to create a button that could initiate the print function and a button that could "save as"the current display information on the page.
for printing it will be okay,
onclick="javascript:window.print()";

but i didnt get u wat u said about save as?
u mean to save ur web page or waht?
save the content display of the web page....save as in such it could be save under what type of files and where to store it..."save as"....heheh

thanks!
Post Reply