A better PHP contact form

I have been working on updating the contact forms on some of my websites. They have all been developed at different times and I need something that I can use as the basis for the majority of my contact forms.

I have come up with a solution which works but would welcome any improvements.

The source code listing and a demo form are here and I would welcome any comments, particularly anywhere that I have made a dog’s dinner of the coding. :slight_smile:

A couple of things which you may consider.

If there are less than about a dozen recipients I would prefer a radio selection.

Secondly, are all fields optional or mandatory, if so mark appropriate fields with an asterisk.

1 Like

Thanks, @John_Betong. I’ll have a look at using radio buttons. I always find them a tad tricky to style…

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.