Here's the form
<form name="form1" method="post" action="send_contact.php"> <table cellpadding='0px' cellspacing='0px' width='100%'> <tr background='images/registerbg.gif '> <td>Subject: *</td> <td><input name="subject" type="text" id="subject" size="50"><br></td> </tr> <tr bgcolor='#c0c0c0'> <td>Detail: *</td> <td><textarea name="detail" cols="50" rows="4" id="detail"></textarea><br></td> </tr> <tr background='images/registerbg.gif '> <td>Name: *</td> <td><input name="name" type="text" id="name" size="50"><br></td> </tr> <tr background='images/registerbg.gif '> <td>Email: *</td> <td><input name="customer_mail" type="text" id="customer_mail" size="50"><br></td> </tr> <tr background='images/registerbg.gif '> <td>Submit: *</td> <td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"><br></td> </tr> <tfoot bgcolor='#b0b0b0'> <td colspan="6">x</td> </tfoot> </form>
Here's the php
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$detail";
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
// Enter your email address
$to ='aiitexx@hotmail.com';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>

New Topic/Question
Reply




MultiQuote






|