简体   繁体   English

如何阻止PHP以某种形式转义撇号

[英]How to stop PHP from escaping apostrophes in a form

I have a form, one input will contain the value: Where something = 'something' . 我有一个表单,一个输入将包含值: Where something = 'something'

When I echo the $_GET (or $_POST ) it replaces it with Where something = \\'something\\' 当我回显$_GET (或$_POST )时,它将替换为Where something = \\'something\\'

Any suggestions? 有什么建议么?

I thought it would be fixed with urlencode going into the form and urldecode when I echo it, but I can't figure out where I'm going wrong. 我认为当我回显它时, urlencode可以通过进入表单和urldecode来解决,但我无法弄清楚哪里出了问题。 Thanks! 谢谢!

您需要在php.ini中关闭魔术引号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM