Click to See Complete Forum and Search --> : PHP Contact Form Help


djtavo03
05-06-2006, 04:06 AM
I need to make a contact form but i need help, i dont know much about php script.. Can some one please tell me what needs to be edited and what needs to be filled in.. Thanks



<?

$contactfield1=$HTTP_GET_VARS["contactfield1"];
$contactfield2=$HTTP_GET_VARS["contactfield2"];
$contactfield3=$HTTP_GET_VARS["contactfield3"];
$contactfield4=$HTTP_GET_VARS["contactfield4"];



$email_from = "you@yourdomain.com";
$email_subject = "" ;
//$email_txt = "";
$email_to = "info@yourdomain.com";



$email_message = "field1: $contactfield1\n
field2 :$contactfield2 \n
field3 :$contactfield3 \n
field4 : $contactfield4 \n

";

mail($email_to, $email_subject, $email_message,$email_from);


?>