Phpget cannot get the value. Solution

Source: Internet
Author: User
Tags what php
Phpget cannot get the value & lt; metahttp-equiv = & quot; Content-Type: text/html; charset = utf-8 & quot;/& gt; & lt ;? Php // automatic redirect // header (& quot; Content-Type: text/ht php get cannot get the value

// Automatic jump
// Header ("Content-Type: text/html; charset = utf-8 ");
$ Type = $ _ GET ['type'];
$ ID = $ _ GET [id];
$ Url = "show_user.php ";
$ Id = $ _ POST ["id"];
// $ Title = $ _ POST ["title"];
$ Password = $ _ POST ["password"];
// Date_default_timezone_set ("Asia/Shanghai ");

// Php. date is added to ini. the timezone option is disabled by default, that is, the displayed time (no matter what php command is used) is Greenwich Mean Time, which is exactly eight hours behind Beijing time.

// $ Time = date ("Y-m-d H: I: s"); // Obtain the current time
$ Con = mysql_connect ("localhost", "root", "123 ");
If (! $ Con)
{
Die ('failed to connect to the database! '. Mysql_error ());
}
// Header ("Content-Type: text/html; charset = utf-8 ");
Mysql_select_db ("test", $ con );
Mysql_query ("set names 'utf8'", $ con );
Echo "China ";
Switch ($ type)
{
Case edit:
$ SQL = "update test set id = '$ ID', pass =' $ password' where id = '$ ID '";
$ Qu = mysql_query ($ SQL, $ con );
If ($ qu)
{
Echo"

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.