Newbie's question: how to change the get content? the page hasn't changed.

Source: Internet
Author: User
Newbie's question: how to change the get content? the page hasn't changed. & lt ;? Phprequire & nbsp; 'Inc/function. php '; header ("Expires:-1"); header ("Cache-Control: no-cache"); header ("A beginner's question: how to change get content, page not changed

Require 'Inc/function. php ';
Header ("Expires:-1 ");
Header ("Cache-Control: no-cache ");
Header ("Pragma: no-cache ");

$ User = $ _ POST ["user"];
If (isset ($ user )){
Echo ("0 | ");
}
Else {
$ Con = mysql_connect (DBHOST, DBUSER, DBPW );
If (! $ Con)
{
Die ('database connection error: '. mysql_error ());
}

Mysql_select_db (DBNAME, $ con );

$ Result = mysql_query ("SELECT uid, password, salt FROM 'pre _ ucenter_members 'where username ='". checkstr (user )."'");
Mysql_close ($ con );

$ Row = mysql_fetch_row ($ result );
Echo ("$ row [0] | $ row [1] | $ row [2]");
}
?>


After this page is executed once, execute again, modify? User =. the execution result does not change.
------ Solution --------------------
$ User = $ _ POST ["user"];
Change
$ User = $ _ GET ["user"];


------ Solution --------------------
Didn't you use POST to receive the message? Change? User = the following parameter. it does not affect POST.

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.