Hi friends..............
I have a page in which all details of user displays. I want that when user click on button"Print ICard" then ICard is printed and this printed Icard have size of what I desire instead of full page and I also need "Thank You" message on print out which is not displayed in web page....
I don't have much knowledge of css and php. So, please give the full code of it.............
Plzzzzzzzzz help............
Anyone????????????
thanks in advance......................

Plzzzzzzzzzzzz

Check this page, if it helps you.
If you dont want to show button on print then call printpage function on body tag onload.

<html>

<head>
 <title>New Page 1</title>
<script language="javascript">
 function printpage()
  {
   window.print();
  }
</script>
</head>

<body>

<form>
 <input type="button" value="Print" onclick="printpage();">
</form>
</body>

</html>

hi frd.........
But this code prints the full screen with button "Print" which is not desirable.I only want to print the output without any URL and buttons.
Have any idea? plz.........

Check this page, if it helps you.
If you dont want to show button on print then call printpage function on body tag onload.

<html>

<head>
 <title>New Page 1</title>
<script language="javascript">
 function printpage()
  {
   window.print();
  }
</script>
</head>

<body>

<form>
 <input type="button" value="Print" onclick="printpage();">
</form>
</body>

</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.