The upload link appears when the php page is opened in the 360 browser or IE.

Source: Internet
Author: User
When the php page is opened in a browser or ie, the link to the index.html page is displayed, which is linked to the index_ OK .php page. Index_ OK .php page & lt ;? Phpsession_start () & nbsp; header ("the download link appears when the Content php page is opened in the 360 browser or IE.
The index.html page is linked to the index_ OK .php page.

Index_ OK .php page
Session_start ();
Header ("Content-Type: text/html; charset = utf-8 ");
Error_reporting (E_ALL &~ E_NOTICE );
Include_once ("../include/conn. php ");
$ Username = trim ($ _ POST ["username"]);
$ Userpwd = trim ($ _ POST ["userpwd"]);

$ Username = iconv ("UTF-8", "gb2312 // IGNORE", $ username );
$ Userpwd = iconv ("UTF-8", "gb2312 // IGNORE", $ userpwd );
$ Userpwd = md5 ($ userpwd );
// Var_dump ($ userpwd );
$ SQL = "select * from rem_table where rem_number = '$ username' and rem_pwd =' $ userpwd '";
$ Mysql = mysql_query ($ SQL) or die ("cocould not query.". mysql_error ());
$ Info = mysql_num_rows ($ mysql );
// Var_dump ($ info );
If ($ info! = 0 ){
$ Str = mysql_fetch_object ($ mysql );
$ _ SESSION ["rem_number"] = iconv ("gb2312", "UTF-8 // IGNORE", $ str-> rem_number );
$ _ SESSION ["rem_name"] = iconv ("gb2312", "UTF-8 // IGNORE", $ str-> rem_name );
Echo" Alert ('login successful! '); Window. location. href = 'REM _ list. php'; script ";
// Header ("location: 'REM _ list. php '");
}
Else {
Echo" Alert ('The user name or password entered is incorrect! '); Window. location. href =' ../index.html '; script ";
}
?>
When the php page is opened in the 360 Browser, IE, or Sogou browser, the download link appears, and Firefox and Google normally display the corresponding page content. what should I do?
------ Solution --------------------
Echo html related tags
------ Solution --------------------
Remove the jump from js.
------ Solution --------------------
A valid connection is provided. verify the connection.

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.