【发布时间】:2015-05-27 16:13:00
【问题描述】:
我正在尝试在 PHP 中提交表单期间删除特殊字符。每次我想提交数据时:
<form action="?" method="get">
<input type="text" name="str" value="I want to remove this" />
</form>
浏览器中的输出如下所示
http://localhost/?str=I+want+to+remove+this
有没有办法在提交之前或提交期间去掉那些“+”?
我的预期结果是
http://localhost/?str=I want to remove this
感谢您的帮助...
【问题讨论】:
标签: php forms submission