为什么%0D%0A在laravel中的get方法中显示?

时间:2017-07-16 12:52:48

标签: php laravel

我尝试使用get方法过滤laravel中的列。

 {!! Form::open(['url'=>'/newjobseekers','method'=>'GET', 'class'=>'form', 'id'=>'search_data']) !!}

enter image description here 如果我点击提交按钮,则会显示http://localhost:8000/newjobseekers?fullname=0&previous_position_1=QC%0D%0A之类的网址。如果没有%0D%0A,它应该结束http://localhost:8000/newjobseekers?fullname=0&previous_position_1=QC,请指导我。谢谢。

1 个答案:

答案 0 :(得分:0)

确保QC之后没有任何空格。

您看到的编码%0D%0A等同于空格和新行。 https://www.w3schools.com/tags/ref_urlencode.asp

所以一定要在传递给表单之前修剪它。