简体   繁体   中英

I have a problem with my php script

I have a form where it request name,email,zipcode. However the problem is that. when you click on submit. it ask you to open the file it doesn't go to the script.

The website is http://childcarelv.org/newsletter.html

PHP isn't being handled by your server. Instead, it is just being output straight to the browser.

This is a server configuration issue.

Your server is configured with the correct MIME type (it is returning application/x-httpd-php), but isn't set up to actually use PHP to process it.

Since you are using Apache, read the configuration instructions here: http://www.php.net/manual/en/install.unix.apache2.php

Looks like you might be hosting with ipower.com. If that is the case, this is an issue for them to solve.

From your description it seems that server is not able to execute the php script, and thus gives it as download to the client.

You should try to put the following code in a file named testphp.php and place in your public home directory and go to the page to see if php extension is mapped to the php module on your server.

<?

phpinfo();

?>

This is just to verify/prove that there is nothing wrong in your script, and even a simple test script won't work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM