> 前端留言提交示例:
表單的前臺HTML使用POST提交方式,表單系統內置十幾種常用判斷規則,您無需進行前臺判斷即可使用
表單ID在自定義表單中查看
```
必須要加 <input type="hidden" name="captcha" value="1">,1 開啟驗證碼 0 關閉驗證碼
```
~~~
{$formurl} 是提交鏈接
<form action="{$formurl}" method="post">
<input type="text" name="表單定義字段" value=""/>
<img src="{:url('index/form/captcha')}" title="驗證碼圖形" id="vercode">
<input type="text" name="yzm" value="" />
其他如單選、多選、下拉等請自行擴展
重點:必須在form體內添加以下1行代碼
<input type="hidden" name="formid" value="表單ID">
<input type="hidden" name="captcha" value="1">
<button type="submit">提交</button>
</form>
<script>
// 圖形驗證碼
$('#vercode').click(function () {
this.src = this.src + '?t=' + (new Date).getTime();
});
</script>
~~~