Firstly bewbs congrats on a very neat, clean looking site. It certainly works wel for me.
Re contact form the plug in one is fairly basic and I didn't like the need to have the need for a user to add a subject in there all the time. I prefer to have a set subject eg Enquiry Form to show as a Subject so I amended the plugin to change that and also added some check boxes and that works fine.
http://www.esimplified.net/cms/madesimp ... ge=Contact
If interested this is the complete file I used (function.contact_form.php)
==========================================
A email address to send to must be specified in order to use this plugin.';
exit;
}else{
$to = $params['email'];
}
$style = true;
if (!empty($params['style']))$style = $params['style'];
$name = '';
if (!empty($_POST['name'])) $name = trim($_POST['name']);
$email = '';
if (!empty($_POST['email'])) $email = trim($_POST['email']);
$phone = '';
if (!empty($_POST['phone'])) $phone = trim($_POST['phone']);
$circle = '';
if (!empty($_POST['circle'])) $circle = trim($_POST['circle']);
$pentagon = '';
if (!empty($_POST['pentagon'])) $pentagon = trim($_POST['pentagon']);
$hexagon = '';
if (!empty($_POST['hexagon'])) $hexagon = trim($_POST['hexagon']);
$cross = '';
if (!empty($_POST['cross'])) $cross = trim($_POST['cross']);
$message = '';
if (!empty($_POST['message'])) $message = trim($_POST['message']);
if($_SERVER['REQUEST_METHOD']=='POST'){
$extra = "Subject: Enquiry Form\r\nFrom: \"$name\r\nReply-To: $email\r\n";
echo '';
if (empty($name)) {
echo 'Please Enter Your Name.';
}elseif (empty($email)) {
echo 'Please Enter Your Email Address.';
}elseif (empty($message)) {
echo 'Please Enter a Message.';
}elseif (!validEmail($email)) {
echo 'Your Email Address is Not Valid.';
}elseif (@mail($to, $subject, "
$name\n
$email\n
$phone\n
My interest is in\n
$circle - $pentagon - $hexagon - $cross\n\n
$message\n", $extra)){
echo "Your message was successfully sent.";
return;
}else{
echo 'Sorry, the message was not sent. The server may be down!';
return;
}
echo '';
}
?>
" method="post" name="contactForm">
Your Name:" size="50">
Your Email Address:" size="50">
Phone:" size="50">
Widget enquiry: Circle
Pentagon
Hexagon
Cross
Message:>
What does this do?
Display's a contact form. This can be used to allow others to send an email message to the address specified.
How do I use it?
Just insert the tag into your template/page like: {contact_form email="
yourname@yourdomain.com"}
If you would like to send an email to multiple adresses, seperate each address with a comma.
What parameters does it take?
email - The email address that the message will be sent to.
(optional)style - true/false, use the predefined styles. Default is true.
Author: Brett Batie<
brett-cms@provisiontech.net>
Version: 1.0
Change History:
None
================================
Cheers
Chris