PHP New Wonderful
My PHP novice today encountered a wonderful problem request parameter has "new" the word
IE will report "invalid data" Firefox will not error
Asking the gods to popularize why
Reply to discussion (solution)
Put out the code and see.
Make the menu bar section code
|
|
• Education News |
|
|
Ejajo Column |
|
|
• Resource Sharing |
|
|
• Parental education |
|
|
• Chicken Soup with Heart |
|
|
• Latest Announcements |
This is a data sheet, it's a wonderful thing, and it's no problem.
Open ($sql, $conn, $_request[), if ("page"]== ") $page =1;else$page=intval ($_request[" page "]); $i =0; $rs Pagesize=15;if ($page <1) $page =1;if ($page > $rs->pagecount) $page = $rs->pagecount;if ($rs->pagecount >0) $rs->absolutepage= $page;? >
| Select AllInverse selection |
' value= ' information sort > |
|
The problem is that when the point is added, the data invalid code is as follows
Why the first time to list.php useful to upload to the add page is invalid data to delete the word "new" just fine
Weird
If you use the URL to pass the Chinese, remember to urlencode at any time, otherwise you cry
Because this involves browser recognition, browser delivery, server identification, server to the 4 levels of PHP, if any one of the 4 links encoding is not correct, will result in unrecognized parameters.
Change to
"
Other places are treated the same way, that is, when using the x.php?x=x format, make sure that the value of X is UrlEncode encoded, especially Chinese.
If you use the URL to pass the Chinese, remember to urlencode at any time, otherwise you cry
Because this involves browser recognition, browser delivery, server identification, server to the 4 levels of PHP, if any one of the 4 links encoding is not correct, will result in unrecognized parameters.
Change to
"
Other places are treated the same way, that is, when using the x.php?x=x format, make sure that the value of X is UrlEncode encoded, especially Chinese.
Thanks for the method, I just tried it or it didn't work.