Jump to content

[SOLVED] Using a PDF-creator on a webpage. HELP!! :-)


Recommended Posts

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!

 

my.php?image=websitedi6.jpg

 

Can someone help me with this?

 

Thanks in advance.

 

Bhead

 

[attachment deleted by admin]

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.