bono_head Posted July 4, 2007 Share Posted July 4, 2007 Hello! I am new here. My first post, but not my last. Haven't been working with PHP in a long while, so I am rusty... But back to the business. I have a webpage: www.site/page245.php. I also have a "frame" on the right side where I have this PDF-button. That button uses html2pdf to create a pdf. The problem is: I need to get a hold of the address it is supposed to create a pdf of. when I use this code: $htmlFile = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; I only get the current page, and I want the previous... If I haven't made myself clear, don't hesitate to ask! I have also drawn a very nice picture in the best program of them all; ms paint! Can someone help me with this? Thanks in advance. Bhead [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
cmgmyr Posted July 4, 2007 Share Posted July 4, 2007 have you tried $_SERVER['HTTP_REFERER'] ? 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.