Submit a message after the template is always displayed click to download the saved page, how to solve

Source: Internet
Author: User
Submit a message after the template is always displayed click to download the saved page
The code is as follows
HTML section


<title>Input</title>







The PHP section
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 '. ' Liuyan ' (' 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-equipped.
!--? Echo phpinfo ();?-->
See what appears.
------Solution--------------------
in all likelihood your PHP has not been configured successfully!
------Solution--------------------
Apache configuration file less
AddType application/x-httpd-php. PHP
------ Solution--------------------
Find/-name httpd.conf
to find a file

typically in 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.