The data submitted by POST is wrong!_PHP tutorial
The data submitted by POST is wrong!
My system is win7. When I first configured the environment and tested it, there was a problem with characters. The characters were garbled. Then I messed around a lot. Now the characters in the field in mysql are "utf8_general_ci", and then I added "$result" in the php program. ->query("SET NAMES GB2312");"Only Chinese characters can be displayed normally, but now there is a problem. When registering the membership system, the registration information filled in regester.html is compared with the user name and password. When submitting the real name, department, etc. to register_process.php, something went wrong. The submitted information was messy and strange. Some of them I clearly filled in three Chinese characters, but the submission showed only one character, and some information could not be submitted at all. . . . Very strange. . . . What's going on?
Let me answer
D8888D reply content------------------------------------------------- ----------
utf8_general_ci ?
SET NAMES GB2312 ?
The coding you remember must be unified
D8888D reply content------------------------------------------------- ----------
[url=http://bbs.111cn.cn/redirect.php?goto=findpost&pid=1068945&ptid=128218]Link tag 2#[/url] tianshibao
Then please tell me how to change it
D8888D reply content------------------------------------------------- ----------
Database utf8_general_ci
mysql_query("set names utf8")
Also, when you write the code and save the file, remember to save it in utf8 encoding
D8888D reply content------------------------------------------------- ----------
utf8_general_ci ?
SET NAMES GB2312 ?
The coding you remember must be unified
D8888D reply content------------------------------------------------- ----------
First: Set the php file, mysql_query("set names utf8");
Second: Modify the html page:
If it still doesn’t work, you can use UltraEdit software, which can convert other encodings into utf8. Try
D8888D reply content------------------------------------------------- ----------
Add mysql_query("set names utf8")
to each file connecting to the database
Then, the question mark became like this:
[img]http://www.hungfattrade.com/extfiles/11.jpg[/img]
....What to do
D8888D reply content------------------------------------------------- ----------
What format is your html file in?
D8888D reply content------------------------------------------------- ----------
Now two more questions.
1. The html file of registration information, the Chinese registration information submitted is always wrong,
2. I added mysql_query ("set names utf8") to the database connection program. Now the Chinese data read from the database has become garbled. It turns out that I wrote SET NAMES GB2312 and it can be displayed normally... the database The field encoding I set is utf8_general_ci
. . . . That’s weird, could it have something to do with win7
D8888D reply content------------------------------------------------- ----------
Database utf8_general_ci
mysql_query("set names utf8")
The original poster saved the database in UTF8 format and imported it again

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Recently, many users using Win7 system have found that the icons in the taskbar suddenly disappeared, which makes the operation very inconvenient and they do not know how to solve the problem. This article will introduce to you how to solve the problem of disappearing taskbar icons in Win7 system. Bar! Cause Analysis When encountering such a situation, there are generally two situations: one is that the taskbar on the computer does not really disappear, but is just hidden, and the other is that the taskbar does disappear. Method 1: 1. There is a situation that you need to confirm first, that is, when the mouse is placed at the bottom of the screen, the taskbar will be displayed. You can directly click the mouse on the taskbar and select "Properties". 2. In the dialog box that opens, click & on the "Hide taskbar" option.

Table of Contents Solution 1 Solution 21. Delete the temporary files of Windows update 2. Repair damaged system files 3. View and modify registry entries 4. Turn off the network card IPv6 5. Run the WindowsUpdateTroubleshooter tool to repair 6. Turn off the firewall and other related anti-virus software. 7. Close the WidowsUpdate service. Solution 3 Solution 4 "0x8024401c" error occurs during Windows update on Huawei computers Symptom Problem Cause Solution Still not solved? Recently, the web server needs to be updated due to system vulnerabilities. After logging in to the server, the update prompts error code 0x8024401c. Solution 1

0.What does this article do? We propose DepthFM: a versatile and fast state-of-the-art generative monocular depth estimation model. In addition to traditional depth estimation tasks, DepthFM also demonstrates state-of-the-art capabilities in downstream tasks such as depth inpainting. DepthFM is efficient and can synthesize depth maps within a few inference steps. Let’s read about this work together ~ 1. Paper information title: DepthFM: FastMonocularDepthEstimationwithFlowMatching Author: MingGui, JohannesS.Fischer, UlrichPrestel, PingchuanMa, Dmytr

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

I cry to death. The world is madly building big models. The data on the Internet is not enough. It is not enough at all. The training model looks like "The Hunger Games", and AI researchers around the world are worrying about how to feed these data voracious eaters. This problem is particularly prominent in multi-modal tasks. At a time when nothing could be done, a start-up team from the Department of Renmin University of China used its own new model to become the first in China to make "model-generated data feed itself" a reality. Moreover, it is a two-pronged approach on the understanding side and the generation side. Both sides can generate high-quality, multi-modal new data and provide data feedback to the model itself. What is a model? Awaker 1.0, a large multi-modal model that just appeared on the Zhongguancun Forum. Who is the team? Sophon engine. Founded by Gao Yizhao, a doctoral student at Renmin University’s Hillhouse School of Artificial Intelligence.

In Win7 system, many users want to delete personalized desktop background images, but do not know how to delete them. This article will show you how to delete personalized background images in Win7 system. 1. First, open the control panel interface of the Win7 system and click to enter the "Appearance and Personalization" settings; 2. Then, in the opened interface, click the "Change Desktop Background" setting; 3. Then, click below "Desktop background" option; 4. Then, select Select all, and then click Clear all. Of course, you can also use it under "Customize", right-click the theme you want to delete, and then click &q on the shortcut menu

Facing lag, slow mobile data connection on iPhone? Typically, the strength of cellular internet on your phone depends on several factors such as region, cellular network type, roaming type, etc. There are some things you can do to get a faster, more reliable cellular Internet connection. Fix 1 – Force Restart iPhone Sometimes, force restarting your device just resets a lot of things, including the cellular connection. Step 1 – Just press the volume up key once and release. Next, press the Volume Down key and release it again. Step 2 – The next part of the process is to hold the button on the right side. Let the iPhone finish restarting. Enable cellular data and check network speed. Check again Fix 2 – Change data mode While 5G offers better network speeds, it works better when the signal is weaker

Many computer users know that network discovery is a network setting. This setting will affect whether the computer can find other computers and devices on the network and whether it can find the computer when other computers on the network are found. So how to enable network discovery in win7? The following computer System Home U Disk Installation will introduce you to the tutorial on how to enable network discovery in win7 system. 1. First, click the "Start Menu" icon on the desktop taskbar and choose to open the "Control Panel" interface. 2. Then, in the interface that opens, set "View by" to "Category", and then choose to enter "Network and Internet"
