If I make a form in dreamweaver (for a mailing list), just with the persons name and email entry fields, how do i set this up so that it sends that info to my email address, which then sends an automatic response back?
How do i generate an email automatically in response to an html form?
listen friend .. thats easy....save the below as php file. and call in form page:
?
$subject = "Contact Us from yoursite.com";
$to = "info@yoursite.com";
$from = $email;
$matter = "Contact Us Details (yoursite.com)\n\n";
$matter .= "Name: $name\n";
$matter .= "Address: $address\n";
$matter .= "phone: $phone\n";
$matter .= "Fax: $fax\n";
$matter .= "Email: $email\n";
$matter .= "Requirements: $query\n";
$msg = nl2br($matter);
$msg = $matter;
mail($to,$subject,$msg,$from);
//echo "your email is: ".@$_REQUEST["email"]."%26lt;br%26gt;";
//echo "your name is: $name\n"."%26lt;br%26gt;";
//echo "your email is: $email"."%26lt;br%26gt;";
//echo $name."%26lt;br%26gt;";
//echo @$_REQUEST["email"]."%26lt;br%26gt;";
?%26gt;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment