Novice question: How to change the contents of get, the page does not change

Source: Internet
Author: User
Novice question: How to change the contents of get, the page did not change AH

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]");
}
?>


This page executes once, executes again, modifies the parameter after the user=, the execution result does not have any change.
------Solution--------------------
$user =$_post["User"];
Switch
$user =$_get["User"];


------Solution--------------------
Didn't you use post to receive it? Change? user= back parameters, no effect on post
  • Related Article

    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.