Hello, I have a form:
<form action=”/cgi_bin/feeback.php” method=”post” id=”shout_out”>
Your Name: <input type=”text” name=”name” /><br>
Your Email: <input type=”text” name=”email” /><br>
<textarea name=”comments” rows=”5″ columns=”200″>What’s on your mind?</textarea><br>
<input type=”submit” value=”Shout it!” id=”shout_it_button” />
</form>
that runs this PHP script:
<?PHP
#######################################################
#######################################################
###################### Set up the following variables ######################
#
$to = “
$subject = “Shout Out!”; #set the subject line
$headers = “From: Franny Sites”; #set the from address, or any other headers
$forward = 1; # redirect? 1 : yes || 0 : no
$location = “
#
##################### No need to edit below this line ######################
$date = date (“l, F jS, Y”);
$time = date (“h:i A”);
$msg = “Below is the result of your feedback form. It was submitted on $date at $time.nn”;
if ($_SERVER[‘REQUEST_METHOD’] == “POST”) {
foreach ($
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header (“Location:$location”);
}
else {
echo “Thank you for submitting our form. We will get back to you as soon as possible.”;
}
?>
and i get the following errors:
The requested URL /cgi_bin/feeback.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I’m sure my server supports PHP and i’m sure this file is in the cgi_bin. ideas?