We help IT Professionals succeed at work.
Get Started

FPDF Looping

musickmann
musickmann asked
on
1,314 Views
Last Modified: 2012-05-09
So I've created an online employment application that generates a PDF form...and I just realized I ran into a little snag with the PDF and the previous employers section.
I have the form setup so they enter one previous employer, then they click the button to add more, basic javascript clone kinda thing.
So now I'm looping through and creating the form, wanting to create something like this:
The first line is this:
Employer Name | Location | Phone } From Date | To Date | Supervisor
followed by the data from the form
then the next line has:
Position | Duties | Reason for Leaving
followed by the form data

What I'm getting is two lines of labels and then two lines of data, like:
Employer Name | Location | Phone } From Date | To Date | Supervisor
Position | Duties | Reason for Leaving
First line responses
Second line responses

I understand how the code is working to create this...but I'm hitting a brick wall on how to mix in the looping through the array and the creating of the labels...

Please help...I'm supposed to have this system up tomorrow AM and just noticed the problem...

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE