Nope that's not it.
my php code in the file "SendMail.php"
Code: Select all
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "<my mail adress was here>", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>
I think i put the php files in the wrong directory. First I had it located in soem random directory together with the *.html file. It didn't work

.
Then I put it in the "C:\Program Files\Apache Group\Apache2\cgi-bin" directory and changed the php call from
"action="SendMail.php" to "action="C:\Program Files\Apache Group\Apache2\cgi-bin\SendMail.php". Still didn't work. The browser just keeps asking to download the php file instead...
Btw, I tried other php codes/files. But they all gave the same problem, so it's not the code.