contact form help needed.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
noobie22
Forum Newbie
Posts: 1
Joined: Fri Nov 12, 2010 2:25 pm

contact form help needed.

Post by noobie22 »

Hi I'm working on a contact page that has a list of people and a link to their email. I want to make it so a form comes up when you click on the link but I want to only have one form. I've seen a lot of these forms that have a place to put one email address but if I did this I'd have 18 different php files.

Is there some code out there that already does this or do I need to code it myself?

thanks for the help,
Dan
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: contact form help needed.

Post by Celauran »

Make the list of email addresses a form itself, use onclick events to submit the form, and pass the email address selected by $_POST to the mail form?
Post Reply