- UID
- 1
- 贡献
- 844
- 金币
- 1540
- 主题
- 520
- 在线时间
- 333 小时
- 注册时间
- 2022-1-15
- 最后登录
- 2024-11-12
|
发表于 2023-2-6 15:16:46
| 292 |
0 |
显示全部楼层
|阅读模式
jinheicms留言表单提交案例代码
- <form action="/form/?gbook" method="post" class="form-horizontal" id="message-form">
- <input name="action" type="hidden" value="saveadd" />
- <div class="form-group">
- <label for="name" class="col-sm-2 control-label"><span class="red-star">*</span> <span class="wz">姓名</span>:</label>
- <div class="col-sm-7">
- <input id="name" name="gname" type="text" class="form-control" placeholder="请输入您的姓名" />
- </div>
- <div class="pull-left">
- <div class="error-info"></div>
- </div>
- </div>
- <div class="form-group">
- <label for="contact" class="col-sm-2 control-label"><span class="red-star">*</span> <span class="wz">手机号</span>:</label>
- <div class="col-sm-7">
- <input id="contact" name="gtel" type="text" class="form-control" placeholder="请输入您的手机号" />
- </div>
- <div class="pull-left">
- <div class="error-info"></div>
- </div>
- </div>
- <div class="form-group">
- <label for="email" class="col-sm-2 control-label"><span class="wz">邮箱</span>:</label>
- <div class="col-sm-7">
- <input id="email" name="gmail" type="text" class="form-control" placeholder="请输入您的邮箱地址" />
- </div>
- <div class="pull-left">
- <div class="error-info"></div>
- </div>
- </div>
- <div class="form-group">
- <label for="content" class="col-sm-2 control-label"><span class="red-star">*</span> <span class="wz">留言内容</span>:</label>
- <div class="col-sm-7">
- <textarea id="content" rows="5" name="gcontent" class="form-control" placeholder="请输入您的留言内容"></textarea>
- </div>
- <div class="pull-left">
- <div class="error-info"></div>
- </div>
- </div>
- <div class="form-group">
- <label for="checkcode" class="col-sm-2 control-label"><span class="red-star">*</span> <span class="wz">验证码</span>:</label>
- <div class="col-sm-7">
- <input id="checkcode" class="form-control" name="code" type="text" placeholder="验证码" />
- <img id="checkCodeImg" src="../../inc/imgcode.php" />
- <div class="error-info"></div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 hidden-xs"></div>
- <div class="col-sm-2 col-xs-12">
- <input type="submit" class="btn btn-primary form-control" name="btn" value="提交" />
- </div>
- </div>
- </form>
复制代码 |
|