View Single Post
  #3  
Old 10-02-2007, 06:00 AM
SherylT's Avatar
SherylT SherylT is offline
Second Lieutenant
 
Join Date: Jan 2007
Posts: 116
Default Re: Help with basic contact form

Okay. Here's what I have pasted in on my "action.php" page which is the Contact page. I put this in the page html section under "Beginning of body" tab.

<?PHP
$mailto = "sales@propertyslides.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Contact Submission Form";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>

Am I putting this in the right place?

__________________
Sheryl
Cust-M-Cartoons -- 10% Discount Code -- FORUM
Personalized Cartoons For Everyone and Personalized Music CDs for Kids
Lost Dutchman AZ
Manufactured Homes Community Website
Crescent Run AZ
Manufactured Homes Community Website
New Baby Cartoons
Personalized Cartoons to announce your new arrival!
PropertySlides
Set your community/home apart from the rest with multimedia!
Reply With Quote