极致cms标签调用之在线表单提交
<form
id="#contact-form"
class="contact-us-form"
action="/message/index"
method="post"
>
<input type="hidden" name="title" value="{$type['classname']}">
<div class="single-input-box">
<input type="text" name="user" placeholder="您的称呼" />
</div>
<div class="single-input-box">
<input
type="email"
name="email"
placeholder="您的邮箱"
/>
</div>
<div class="single-input-box">
<input type="text" name="tel" placeholder="您的手机" />
</div>
<div class="single-input-box">
<textarea
name="body"
placeholder="留言内容"
></textarea>
</div>
<div class="single-input-box">
<input type="text" name="vercode" placeholder="验证码" />
</div>
<div class="single-input-box">
<img src="/common/vercode/name/message_vercode?{fun getRandChar(8)}" onclick="this.src=this.src+'?'+Math.random()">
</div>
<div class="single-input-box">
<button type="submit" class="btn-primary btn-large">
发 送 <i class="icofont-long-arrow-right"></i>
</button>
</div>
<p class="form-messege"></p>
</form>