摘要:
<div> <form action="/home/Uplod" method="post" enctype="multipart/form-data"> <input type="file" name="file" id="image" multiple="multiple" onchange=" 阅读全文
摘要:
表单令牌的作用:避免表单的重复提交(如在tp5提交成功等待跳转页面刷新页面会在次提交表单) 原理:在初始化表单时,生成一个session标识‘token’,提交表单时将这个token一起提交过去,然后和session中的token对比,如果验证通过,清空session中的token 用法: 在表单中 阅读全文
摘要:
自定义验证规则 阅读全文