Over the last couple of days I've had the great pleasure of experimenting with version 1.8 of the
contact form plugin for Serendipity, which has been recently updated by
Matthew Groeninger to include the ability to alter the default textboxes by simply checking a box 'Use the Dynamic .tpl?', and then entering your chosen fields into a text box, clicking save, and voila, your site instantly displays your new fields.
What I love about this is that users of Serendipity no longer need to edit the actual php file to get the result they want. Specifically, small business users are now able to change the contact form so that their form includes input boxes for phone numbers, addresses, gender, even checkboxes to subscribe to a mailing list.
The following snippets can be used to configure the new dynamic contact form, all you need to do is copy and paste them directly into the 'form field string' text box. The lower case (r) means that these are required fields. Enjoy!
Basic contact form with first name (r), last name (r), email (r), homepage, and message.
require;First Name;text :require;Surname;text :require;Email;text :Homepage;text :Message;textarea;
Ideally suited for a small business or entrepreneur where the site visitor simply wants to make contact. They are asked for first name (r), last name (r), company, telephone number (r), email (r), homepage and message.
require;First Name;text :require;Surname;text :Company;text :require;Tel;text :require;Email;text :Homepage;text :Message;textarea;
This one might be more useful for generating sales leads where the client needs a followup phone call to set an appointment, and includes first name (r), last name (r), gender being Mr, Mrs or Miss, company, telephone number (r), mobile (r), email (r), homepage, and message.
require;First Name ;text:require;Surname;text :Title;radio;Mr,Mr|Mrs,Mrs|Miss,Miss :Company;text :require;Tel;text :Mobile;text :require;Email;text :Homepage;text :Message;textarea;
I hope these help, good luck.