Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer friendly version

Status
Not open for further replies.

be1s

Programmer
Joined
Dec 8, 2003
Messages
59
Location
US
I have a form that I've created in Dreamweaver. I would like to print out the form with label and field values. How can I do this?
 
be1s, you want to simply print the form from the screen?? Or you want to print the form after the user has inputed values into it??

If its the former, simple make a button and have its action to javascript:print();.

If its the latter, submit the page to another page, passing all the values, and then have the user print from there.

Hope this helps.


____________________________________
Just Imagine.
 
I want to print the form after the user has inputed values into it.

How do you submit to another page with the values? Can you recommend a site where I can read up on this.

Thanks.
 
be1s, you would need some kind of a server-side script to pass values like the way you want. Usually, when a user fills out a form and hits "submit", a server side script (like Coldsusion, ASP, PHP, etc.) passes the values to the next page. And this is the setup you're after. I'm sure you might be able to do achieve this effect using JS, but that would be very complicated, and unsafe.

You want the user to go to the second page (after they filled out the form), and on the second page you want it to be a printer friendly page.

What kind of server side scripts do you use?? If you have a hopsting company, ask them. Sometimes hosting companies give one server-side scripting capabilities with the basic plan.


____________________________________
Just Imagine.
 
Yes that's exactly what I need.

The hosting company only supports CGI scripts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top