Probably simple

liunx

Guest
Is it possible to have a submit button submit the form to formmail.pl and print the contents at the same time? I am stumped!<br />
Stay Happy<br />
Noodles<!--content-->As far as I know, there is no way of telling the browser to print the page.<br />
<br />
Or am I terribly wrong?<br />
<br />
-aslefo<!--content--><html><br />
<head><br />
<title>Untitled</title><br />
</head><br />
<br />
<body><br />
<form method=get action="http://www.yahoo.com"><br />
<input type=submit onClick="print();"><br />
</form><br />
<br />
</body><br />
</html><!--content-->This is how I did it, thanks for the replies especially the dr web one very explanator. Maybe someone else might need it sometime.<br />
<form action="/formmail/FormMail.pl" name="formname" method="post"><br />
<input type="hidden" name="redirect" value="http://www.domain.com/thanks.htm"><br />
<input type=hidden name="required" value="email,companyname,address,date,startdate,enddate"><br />
<input type=hidden name="recipient" value="[email protected]"><br />
<input type=hidden name="subject" value="request"><br />
<input name="Print" onClick="window.print();return true" type="submit" value="Print"><br />
The return true seemed to be the bit that sorted it for me!<br />
Stay Happy<br />
Noodles<!--content-->Well there you go...terribly wrong. ;)<!--content-->
 
Back
Top