title: php print script without printing print button
body: <p>hi i have a print script to print the page</p>
  
  <pre><code>$print9 ='&lt;script&gt;
  function printpage()
    {
    window.print()
    }
  &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;&lt;input type="button" value="Print" onclick="printpage()"&gt;
  
      &lt;/body&gt;
  
      &lt;/html&gt;&lt;/div&gt;
      ';
  
  echo $print9;
  </code></pre>
  
  <p>it works perfectly but it also print the print button in hardcopy and dnt want to print the print button
  how can i do this i have also search but i am not able to understand there answers.</p>