Issue in printing template on clicking print button?

  • I want to print one html template on clicking print button.

  • I have the tempplate , I echo the values there which I am getting in one array and working fine .
    -This is how I am trying to print the template when click on print button

                        <a href ="t.php" target="_blank" onClick="window.print();" ><button type="submit" name="submit" value="submit" id="sub" class="btn submit-btn">Print</button></a>
  • here t.php is my template which I want to print after clicking print button (the href path is also correct)

  • I know thisis not correct way but I am not able to fix it.

  • how can I fix it ?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.