After a template for submitting a message is submitted, the page for clicking download and saving is always displayed. how can this problem be solved?

Source: Internet
Author: User
After submitting a message submission template, the following html code is displayed: & lt; head & gt; & lt; meta & nbsp; http-equiv & quot; content-Type & quot; & nbsp; content & quot; texthtml; & nbsp; charsetgb2312 & quot; & nbsp; a message submission template is displayed on the download and save page.
The code is as follows:
Html section


Input







Php
Echo $ name .'

';
Echo $ sex .'

';
Echo $ email .'

';
Echo $ infor .'

';


$ Mysql_server_name = "localhost ";
$ Mysql_username = "******";
$ Mysql_password = "******";
$ Mysql_database = "******";
$ Conn = mysql_connect ($ mysql_server_name, $ mysql_username, $ mysql_password );
$ SQL = "INSERT INTO 'leaoon '. 'liuany' ('id', 'name', 'sex', 'Email ', 'infor', 'IP', 'Time _ at') VALUES (NULL, '$ name',' $ sex ',' $ email ',' $ infor ','');";
$ Result = mysql_db_query ($ mysql_database, $ SQL, $ conn );
$ Row = mysql_fetch_row ($ result );
Print_r ($ row );
Myaql_free_result ($ result );
?>



------ Solution --------------------
It seems that php is not well configured.

See what appears.
------ Solution --------------------
In, your PHP was not configured successfully!
------ Solution --------------------
The apache configuration file contains only one sentence.
AddType application/x-httpd-php. php
------ Solution --------------------
Find/-name httpd. conf
Find a file

Usually a directory under/usr/local/
For example/usr/local/apache
And so on.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.