Hi guys, i don't know what 's causing this php error:
403 Forbidden. You don't have permission to access /Duplicate of Edited Site/< on this server.
Need help. This problem actually occured when i clicked the submit button from a certain form.
Thanks in advance.
This is code:
<html>
<head></head>
<body>
<?php
if (isset($_POST["submit"]))
{
if (!$_POST['name'] || !$_POST['email'] || !$_POST['question'])
{
echo "Required fields not completed, please input the required fields.";
}
else
{
$name = $_POST['name'];
$email = $_POST['email'];
$question = $_POST['question'];
$message = wordwrap("Message from $name \n Message: $question", 70);
if(!mail('little_saint1321@yahoo.com',"Inquiry",$message,"Cc: $email\r\n"))
{
echo "Sending failed, please input the required fields.";
}
else
{
echo "Message sent.";
}
}
}
?>
<form name="FAQ" method="post" action='<?php echo $_SERVER["PHP_SELF"]; ?>'>
<table cellpadding="0" cellspacing="5" border="0" width="500" align="center">
<tr>
<td width="150">Name: * </td>
<td width="350"><input type="text" name="name"></td>
</tr>
<tr>
<td width="150">Email Address: * </td>
<td width="350"><input type="text" name="email"></td>
</tr>
<tr>
<td width="150" colspan="2">Question: * </td>
</tr>
<tr>
<td width="350" colspan="2"><textarea cols="59" rows="5" name="question"></textarea></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" value="Send" name="submit"></td>
</tr>
</table>
</form
</body>
</html>