Page 1 of 1

Browser not running PHP script, displaying it instead

Posted: Sun Aug 23, 2009 5:04 am
by jason9x
Hello,

I have a webpage that has a feedback form. When I press "Send Feedback" a script is supposed to run to send the comments to an email address. But whenever I press "Send Feedback" the browser displays the PHP code but does not run it. Does anyone know why this happens?

You can see it here:

http://www.sfu.ca/~jasonw/feedback.html

The PHP code was taken from thesitewizard.com

I would appreciate any help. Thank you.

Re: Browser not running PHP script, displaying it instead

Posted: Sun Aug 23, 2009 5:07 am
by jackpf
Do you have PHP installed?

Also, if you look in your httpd.conf file (apache), do you see the line:
AddType application/x-httpd-php (should be various extensions, including .php)

Oh, and do you have any htaccess files in your directory?