Joseph Longo
asked on
FPDF - Creating Multiple Pages via "Foreach" loop
Hello Experts,
I created a 19 question PHP survey program using HTML text areas. It is hosted on my employer's network and can only be accessed via a work computer. The results are anonymous, to some extent. Although I do not collect the survey taker's information, I work in a small department and my boss would know that it came from someone currently working at the moment. My department is open 24/7, 365. So, instead, my boss wants me to dynamically generate a PDF, upon the user's submission, which is not a huge ordeal...but...
How would I accommodate various users' responses, i.e., shorter responses versus longer responses? It'd be nice if each pdf was restricted to X pages, but I don't want to restrict the end user's answer.
Also, if the data extends beyond one page, how do I create additional pages? Would I just use another instance of $pdf->AddPage();?
I created a 19 question PHP survey program using HTML text areas. It is hosted on my employer's network and can only be accessed via a work computer. The results are anonymous, to some extent. Although I do not collect the survey taker's information, I work in a small department and my boss would know that it came from someone currently working at the moment. My department is open 24/7, 365. So, instead, my boss wants me to dynamically generate a PDF, upon the user's submission, which is not a huge ordeal...but...
How would I accommodate various users' responses, i.e., shorter responses versus longer responses? It'd be nice if each pdf was restricted to X pages, but I don't want to restrict the end user's answer.
Also, if the data extends beyond one page, how do I create additional pages? Would I just use another instance of $pdf->AddPage();?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nevermind. My boss changed her mind on how she would like the data handled.
ASKER
Thank you for your input.
ASKER