User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 374,583 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,043 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3597 | Replies: 5
Reply
Join Date: May 2005
Posts: 6
Reputation: DeborahJT is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
DeborahJT DeborahJT is offline Offline
Newbie Poster

Forms - Print Button

  #1  
May 27th, 2005
I have a form that cannot be "submitted" because the server doesn't accept cgi or php. So I've decided to just accept it and have the visitor fill out the form online and then print it and mail it in.

I know I've used the "Print" button before some time ago, but can't remember how I did it. Can you help me?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Forms - Print Button

  #2  
May 27th, 2005
It's just "print()".

You can get PHP hosting affordably. Lots of options. I use a company called "ShinySolutions": http://www.shinysolutions.com
Reply With Quote  
Join Date: May 2005
Posts: 6
Reputation: DeborahJT is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
DeborahJT DeborahJT is offline Offline
Newbie Poster

Re: Forms - Print Button

  #3  
May 27th, 2005
This is a site I maintain on a volunteer basis and the hosting is provided free by one of the Board members. So, we don't really have the option of changing right now. I'm trying to get them to get up to speed, but in the meantime, I need to print the form.
Reply With Quote  
Join Date: May 2005
Posts: 6
Reputation: DeborahJT is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
DeborahJT DeborahJT is offline Offline
Newbie Poster

Re: Forms - Print Button

  #4  
May 27th, 2005
Thomas

Now I feel stupid. I created a print button but where in the code does the print() go? Right now the code looks like <input TYPE="button" VALUE="Print">

By the way, thanks for your help. I really appreciate it.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Forms - Print Button

  #5  
May 27th, 2005
I'm sorry I wasn't more clear. The function you need to call is "print()". So just change your tag to :

<input TYPE="button" VALUE="Print" onClick="window.print();">

When the user clicks the button, the print dialog box will appear.
Reply With Quote  
Join Date: May 2005
Posts: 6
Reputation: DeborahJT is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
DeborahJT DeborahJT is offline Offline
Newbie Poster

Re: Forms - Print Button

  #6  
May 27th, 2005
Thanks that's just what I needed.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC