0
A
回答
0
似乎要传递的输入作为一个类型的数组。 htmlentities()仅适用于字符串类型。 这
<td><input type="text" name="type[]" value="{{ old('type') }}" class="form-control"></td>
应该
<td><input type="text" name="type" value="{{ old('type.0') }}" class="form-control"></td>
的type.0将数组中只返回的第一个项目。
相关问题
- 1. htmlentities()期望参数1是字符串,给定的数组? Laravel
- 2. Laravel:withInput - htmlentities()期望参数1是字符串,数组给定
- 3. htmlentities()期望参数1是字符串,给出的数组
- 4. htmlspecialchars()期望参数1是字符串,给定的数组。 (laravel)
- 5. htmlspecialchars()期望参数1是字符串,数组给定laravel
- 6. “htmlentities()期望参数1是字符串,数组给定”在PHP中
- 7. 获取错误由于htmlentities()期望参数1是字符串,数组给定
- 8. PHP警告htmlentities()期望参数1是字符串,数组给定
- 9. htmlentities()期望参数1是字符串,当提交时给出的数组为
- 10. cakephp:strtolower()期望参数1是字符串,数组给定
- 11. strlen()期望参数1是字符串,数组给定
- 12. strtotime()期望参数1是字符串,数组给定
- 13. json_decode()期望参数1是字符串,数组给定?
- 14. basename()期望参数1是字符串数组给定codeigniter
- 15. json_decode()期望参数1是字符串,给定的数组
- 16. json_decode()期望参数1是字符串,给出的数组
- 17. Strip_tags()期望参数1是字符串,数组给出
- 18. php substr()期望参数1是字符串,给出的数组
- 19. getimagesize()期望参数1是字符串,数组给出
- 20. Laravel - ヶ辆()预计参数1是字符串,数组给定
- 21. Laravel用htmlspecialchars()预计参数1是字符串数组给定
- 22. date()期望参数2是整数,字符串给定Laravel 5.2
- 23. mysqli_stmt :: bind_param()期望参数1是字符串,给定数组[解决]
- 24. htmlentities()期望参数1是字符串,在我的laravel项目json_decode
- 25. 警告:PDOStatement :: execute()期望参数1是数组,字符串
- 26. preg_match()期望参数2是字符串,数组给出
- 27. file_get_contents()期望参数1是字符串,
- 28. 字符串串联 - preg_match()期望字符串,给定的数组
- 29. mysqli_num_rows()期望参数1是mysqli_result,给定的数组
- 30. mysql_fetch_assoc()期望参数1是给定的资源数组
'old('type')'是数组,你应该得到它的第一个值,手动填充输入。 – TheFallen
如果只有一个,name =“type []”应该是name =“type”。如果有多个,那么它是一个数组,你应该在提交之后处理每个值。 –