Why are my ' characters turned into \' whe

2019-03-06 03:32发布

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>

When I write some quotes, like: ', it would arrive as \'
So o'clock will be o\'clock

Do you have an idea?

EDIT :

The strange thing is that quotes are not escaped in POST variables, according to firebug !

check

1条回答
乱世女痞
2楼-- · 2019-03-06 04:11

You appear to be using a less then entirely up to date version of PHP and have magic quotes turned on.

查看更多
登录 后发表回答