POST到服务器后,为什么我的'字符变成\'? [英] Why are my ' characters turned into \' when POSTed to my server?
本文介绍了POST到服务器后,为什么我的'字符变成\'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在HTML方面不是很强,每次遇到一些编码问题.
I'm not very strong in HTML, and each time I have some encoding problems.
在这里,我有一个像这样的表格:
Here, I have a form like :
<head>
<META http-equiv="Content-Type" Content="text/html; charset=ISO-8859-1">
[...]
<form method="post" action="thispage.php" >
<input name="title" type="text" id="title" size=75 value="" />
<textarea name="description" rows="10" cols="80" id="description"></textarea>
<input type="submit" value="GO" />
</form>
当我写一些引号时,例如:'
,它将以\'
的形式出现
所以o'clock
将是o\'clock
When I write some quotes, like: '
, it would arrive as \'
So o'clock
will be o\'clock
你有个主意吗?
奇怪的是,根据firebug的说法,引号不会在POST变量中转义!
The strange thing is that quotes are not escaped in POST variables, according to firebug !
推荐答案
You appear to be using a less then entirely up to date version of PHP and have magic quotes turned on.
这篇关于POST到服务器后,为什么我的'字符变成\'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文