marknt Posted February 8, 2007 Share Posted February 8, 2007 Hello guys. I'm doing a report and already used the window.print() javascript function. But at the upper right of the page appears the URL of the php file to print and at the lower left is the page number. I want to disable them. I have checked the page setup in firefox and you can disable it manually. My question is is there anyway i can access the page setup via PHP so that i can disable the added URL and page numbering in my page when i print it out? Thanks in advance! More power Quote Link to comment Share on other sites More sharing options...
ultrus Posted February 8, 2007 Share Posted February 8, 2007 Hello marknt, I'm 95% sure that you can't access print stuff from php as it runs on the server before getting to the browser. I am unsure if this is possible at all, but would be interested yo know if it was. Good luck. Quote Link to comment Share on other sites More sharing options...
marknt Posted February 8, 2007 Author Share Posted February 8, 2007 aaawwww..*sigh*..., i thought that there's a PHP way. Thanks for the reply ultrus. I guess they'll just have to set it manually in order to disable the URL and page numbering when they print it out. Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 8, 2007 Share Posted February 8, 2007 this is the correct way ok mate. http://www.sitellite.org/index/tutorials-story-action/story.45/title.css-based-print-this-page- Quote Link to comment Share on other sites More sharing options...
ultrus Posted February 8, 2007 Share Posted February 8, 2007 That's sweet. I learned something new. Thanks for the post. Quote Link to comment Share on other sites More sharing options...
marknt Posted February 8, 2007 Author Share Posted February 8, 2007 this is the correct way ok mate. http://www.sitellite.org/index/tutorials-story-action/story.45/title.css-based-print-this-page- WOW!!! Thanks!!! Now that's what i'm talkin about. Thanks again sir redarrow Quote Link to comment 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.