发布到我的服务器后,为什么我的'字符变为'?

时间:2012-05-31 16:00:09

标签: html forms post encoding

我的HTML不是很强,每次我都有编码问题。

在这里,我的表格如下:

<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

你有什么想法吗?

编辑:

奇怪的是,根据萤火虫的说法,引号不会在POST变量中转义!

check

1 个答案:

答案 0 :(得分:4)

您似乎使用了一个不那么完全最新版本的PHP并且已启用magic quotes