How to use variable values to name PDF output file?

I would like to keep a repository of all php generated pdf files in a folder on the server root. Everytime a user logs in to site, they create a pdf based on their inputs. I would like them to have the chance to download the pdf whenever they feel like it.

The problem is that pdf file gets replaced everytime a new user logs in and submits the form because I am using the same name for the file.

I would like to use 3 variable values (user logged in, item evaluated, and date) to name the file, that way each file will have a unique name and be able to be downloaded any time.

Is this possible??? thanks in advance…

Hi there,

It should be, if you post the code that creates the PDF then I can let you know the most relevant and useful way of doing it in relation to what you have already written.

Sponsor our Newsletter | Privacy Policy | Terms of Service