web建站教程
  1. 首页
  2. vuejs
  3. js
  4. 好玩
  5. seo教程
  6. 前端知识
  7. 百度echarts
  8. 更多
    php入门
    nodejs
    mockjs
    reactjs
    mysql
    wordpress
    织梦cms
    帝国cms
    git教程
    IT知识
    模板大全
    休息站

帝国cms如何做留言板功能

417 ℃
     

帝国cms如何做留言板功能

<script>
   function check(theform, textlengh) {
    if (theform.name.value == "") {
      alert("对不起!您的姓名不能为空!");
      return false;
    }
    if (theform.call.value.length == "") {
      alert("对不起!您的电话不能为空!");
      return false;
    }
    if (theform.email.value == "") {
      alert("对不起!电子邮件不能为空!");
      return false;
    }
    if (theform.content.value.length == "") {
      alert("对不起!咨询或建议不能为空!");
      return false;
    }
    if (theform.lytext.value.length > textlengh) {
      alert("对不起!咨询或建议长度不能超过" + textlengh + "字符!");
      return false;
    }
  }
</script>
<table cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <tbody>
    <tr>
      <td>
        <P align=center>
          <font face=宋体 color=#000000 size=3></font>&nbsp;</P>
      </td>
    </tr>
  </tbody>
</table>
<BR>
<table cellSpacing=1 cellPadding=0 width="80%" align=center bgColor=#cccccc border=0>
  <form action="../../enews/index.php" method="post" name="form1" id="form1">
    <tbody>
      <tr align=middle bgColor=#eeeeee>
        <td colSpan=2 height=24>
          <font color=#000000>在线留言</font></td>
      </tr>
      <tr>
        <td align=right width="29%" bgColor=#ffffff height=26>
          <font color=#000000>您的姓名:</font></td>
        <td width="71%" bgColor=#ffffff height=24>&nbsp;
          <input maxLength=15 size=30 name=name>
          <font color=#ff0000>*</font></td>
      </tr>
      <tr>
        <td align=right bgColor=#ffffff height=26>
          <font color=#000000>您的电话:</font></td>
        <td bgColor=#ffffff height=24>&nbsp;
          <input maxLength=15 size=30 name=call>
          <font color=#ff0000>*</font></td>
      </tr>
      <tr>
        <td align=right bgColor=#ffffff height=26>
          <font color=#000000>电子邮件:</font></td>
        <td bgColor=#ffffff height=24>&nbsp;
          <input maxLength=50 size=30 name=email>
          <font color=#ff0000>*</font></td>
      </tr>
      <tr>
        <td align=right bgColor=#ffffff height=24>
          <font color=#000000>咨询或建议:</font></td>
        <td bgColor=#ffffff height=24>&nbsp;
          <textarea name=lytext rows=5 cols=29></textarea>
          <font color=#ff0000>*</font></td>
      </tr>
      <tr bgColor=#ffffff>
        <td align=middle colSpan=2 height=30>
          <input onClick="return check(this.form,'200')" type=submit value="提 交" name=Submit3>
          <input type=reset value="重 置" name=Submit2>
          <input name="enews" type="hidden" id="enews" value="AddGbook" /></td>
      </tr>
  </form>
  </tbody>
</table>

js有哪些函数可以将数据输出到控制台

CMS网站被挂黑链应该如何解决?(如何防止黑链)

js数组name相同的元素value值相加

详解织梦DedeCms的安全问题优化解决办法(安全设置

详解dedecms织梦增加让文章置顶一天的功能

标签: alert, CMS网站, theform, value, 留言板

上面是“帝国cms如何做留言板功能”的全面内容,想了解更多关于 帝国cms 内容,请继续关注web建站教程。

当前网址:https://ipkd.cn/webs_1198.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

当前位置: 网站首页 > 帝国cms
本文共计2134个字,预计阅读时长15分钟
生活小工具,收录了80多款小工具
上一篇: 介绍几款带有中国风古韵的免费可商用中文字体
下一篇: 推荐9款支持 Vue3 免费开源的前端 UI 组件库
x 打工人ai神器