problem with printing selected section?
Posted: Tue Nov 14, 2006 3:09 am
how can we print a selected section?
can anyone pls help?
[/syntax]
can anyone pls help?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<form action="" method="get">
This is my name JOHN...
<br /><br />
1.Name :
<br /><br />
2.Age :
<br /><br />
3. Gender :
<br /><br />
<input name="button" type="button" value="print" />
<input name="button" type="button" value="submit" />
</form>Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Some Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="styles/web.css">
<link rel="stylesheet" type="text/css" media="print, handheld" href="styles/print.css">
</head>
<body>
<p>This text still gets printed... but, the buttons don't...</p>
<form method="#">
<input type="button" name="button" value="no" class="button">
<input type="submit" name="submit" value="Submit" class="button">
</form>
</body>
</html>Code: Select all
// Web StylesCode: Select all
form .button{
display: none;
}Code: Select all
//this is the print button
<input type="button" value="Cetak" onClick="javascript:window.print();" />Code: Select all
<input type="button" value="Cetak" class="button" onClick="javascript:window.print();" /> Code: Select all
.button{
/* Standard web styling */
}Code: Select all
.button{
display: none;
}Code: Select all
<head>
<link rel="stylesheet" type="text/css" href="styles/web.css">
<link rel="stylesheet" type="text/css" media="print, handheld" href="styles/print.css">
</head>