I've now put together a .php form but can not seem to getting it working in joomla, this is save as quote.php in the main folder on the server. please see code below:
// first, check all "required" fields have values
if (!$name || !$phone || !$email)
//if (!$first_name)
{
/*
else if (!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$', $email))
{
header("Location:contact.html?error=Please enter a valid e-mail address");
}
*/
else
{
$sent = date("d/m/Y G:i"); // timestamp the e-mail
$to = "This email address is being protected from spambots. You need JavaScript enabled to view it.";
$subject = "Online Enquiry";
$details = stripslashes($details); // stripslashes() removes any "\"
$headers .= "From: \"$name\"<$email>"; // when you receive the e-mail
I have also put the CSS into the template. BUT for the life of me I can not work out how to get it working?? I've tried it as static pages and all works fine. But when I go to the contact page and enter the info into the page it comes up with a 404 error??