Click to See Complete Forum and Search --> : print and send button


angeliamy
03-17-2003, 11:05 AM
I have a form that I use the Javascript print button on or I can use the form print button, however I also want that button to go to an ASP page to upload to a database. How do I get the button to print and send to another page at the same time?

Jona
03-17-2003, 12:36 PM
Uh... <FORM action="myFile.asp">
<input type=submit onclick="window.print()">

That should work.

P.S. You can add a value="" attribute to the submit button; the default value, though, is "Sumbmit Query."

angeliamy
03-17-2003, 12:53 PM
Thank you for that! I knew that, I guess I had a brain lapse! Sometimes the obvious easy things are the first ones to forget!

Thank You!

Jona
03-17-2003, 12:59 PM
No problem. :)