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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Form and hidded Submit on print button press

Status
Not open for further replies.

Delphiwhat

Programmer
Apr 1, 2003
74
EU
Hi folks

html isn't my thing and so i'm asking for some help here.
If there's a quick solution with out me reading loads of books that would be great otherwise I guess I'll have to try sourcing some books!

I have created a basic form at the bottom of this form I want a button "print form" that prints the form. However when this button is pressed i want the form also to be submitted to a cgi script (like formmail.cgi)for processing at the same time without the user knowing! any ideas much appreciated!
:)
j
 
i have not tried it but i can give u a function

<input type=&quot;button&quot; onclick=&quot;PrintSubmit()&quot;>

function PrintSubmit()
{
window.print()
document.FormName.submit()
}

u want more info try the javascript forum.

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top