thanks daniel when we upload our files in public_html the feedback form html and sendmail.php this was the happen upon the result Warning: mail() has been disabled for security reasons in /home/sunasia/public_html/sendmail.php on line 16
what we should do because we are using a yahoo mail only
Edit:
this the code for feedback form. html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>building Feedback Form with php</title>
<style type="text/css" media="all" >
form {
padding: 10px;
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
background-color:#F8F8F6;
background-image: url(formBg.png);
border: 1px dotted #878177;
}
fieldset {
margin: 20px 0;
padding: 15px 10px;
background-color:#F4F4F2;
border: 3px double #878177;
}
legend {
padding: 2px 5px;
color: #1C1C1C;
background-color: #FFD;
border: 1px solid #878177;
}
label.preField {
display: block;
padding: 2px;
margin: 0.4em 4px 0 0;
font-weight: bold;
}
form .oneField {
}
</style>
</head>
<body>
<form name="frmFeedback" method="post" action="sendmail.php">
<fieldset class="repeat">
<legend>Feedback...</legend>
<label class="preField">
Name:
<input name="name" type="text" />
</label>
<label class="preField">Email:
<input name="email" type="text" />
</label>
<label class="preField">Message:<br />
<textarea name="message" rows="8" cols="40">
</textarea></label>
<input type="submit" name="Submit" value="Submit" onClick="return vldFrm_Feedback();" />
</fieldset>
</form>
<script type="text/javascript">
function vldFrm_Feedback(){
var result = true;
var msg="";
if (document.frmFeedback.name.value=="") {
msg+="Your Name please !\n";
result = false;
}
if (document.frmFeedback.email.value=="") {
msg+="Your Email please !\n";
result = false;
}
if (document.frmFeedback.message.value=="") {
msg+="Your Message is Required !";
result = false;
}
if(msg==""){
return result;
}{
alert(msg)
return result;
}
}
</script>
</body>
</html>
_____________________________________
this is the code for sendmail.php :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>feedback</title>
</head>
<body>
<?php
$Name = $_POST['name'] ;
$email = $_POST['email'] ;
$message = $_POST['message'] ;
$message1="You have new feedback from".$email."<br /><br />".$message."";
mail( "sunasia08@yahoo.com", "Feedback Form...", $message1, "From: $email" );
echo'Thanks You for your feedback...<a href="http://forums.x10hosting.com/free-hosting/feedback.html" title="Back to Feedback form...">Back</a>'
?>
</body>
</html>
thank you in advance