sseeley Posted May 21, 2010 Share Posted May 21, 2010 Hi I am trying to insert a page break. If I only use one page break using the code below it fails. echo "<hr/>"; echo "</p>"; echo "<p style=\"page-break-before: always\">"; However if I enter another duplicate line as below it works fine, but adds in another page break. echo "<hr/>"; echo "</p>"; echo "<p style=\"page-break-before: always\">"; echo "<hr/>"; echo "</p>"; echo "<p style=\"page-break-before: always\">"; Can anyone help? Many thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/202542-page-break/ Share on other sites More sharing options...
premiso Posted May 21, 2010 Share Posted May 21, 2010 Why not just use <br /> ? Sorry. Just read the "Page Break" wrong. Thought you meant a line break Quote Link to comment https://forums.phpfreaks.com/topic/202542-page-break/#findComment-1061797 Share on other sites More sharing options...
sseeley Posted May 21, 2010 Author Share Posted May 21, 2010 I need a page break so when it prints it goes onto a new page for printing. Quote Link to comment https://forums.phpfreaks.com/topic/202542-page-break/#findComment-1061798 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.