I have one form with the following fields:
name1, company1, email1, name2, company2, email2...5
This form calls a page with a php script that mails me the fields filled on that form, using the mail command.
However, I only want to see those fields if they have an entry.
I want to receive something in the following format:
Name: (will show name1 or name2 etc. depending on which fields have a value)
company: $companyX
email: emailX
The chances are that I will only get one batch of fields with values, but someone may inadvertantly enter something in email2 and name4, company4. I need to trap for this.
The page in question is www.access-programmers.co.uk/contact-test.htm
How can I add these fields to my email only if they have a value?
Hope that made sense.
Thanks,
Jon