重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

帝国cmspost 帝国cmspage1

帝国cms 判断搜索字段的字段不能为空?

!doctype html

成都网站建设、成都网站制作服务团队是一支充满着热情的团队,执着、敏锐、追求更好,是创新互联的标准与要求,同时竭诚为客户提供服务是我们的理念。创新互联公司把每个网站当做一个产品来开发,精雕细琢,追求一名工匠心中的细致,我们更用心!

html

head

meta charset="UTF-8"

titleUntitled Document/title

/head

body

script

function CheckSearchForm(){

    if(document.getElementById("searchform").stitle.value=="")

    {

            alert("请输入标题");

            return false;

    }

    if(document.getElementById("searchform").swriter.value=="")

    {

            alert("请输入作者");

            return false;

    }

    return true;

}

/script

form name="searchform" id="searchform" method="post" action="/e/search/index.php" onsubmit="return CheckSearchForm();"

table width="550" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder"

input type="hidden" name="tbname" value="zhengshu"

input type="hidden" name="tempid" value="1"

input type="hidden" name="andor" value="and"

tr class="header"

  td colspan="2"新闻搜索/td

/tr

tr bgcolor="#FFFFFF"

  td width="97"姓名:/td

  td width="388"

      input type="hidden" name="show[]" value="title"

      input type="hidden" name="hh[]" value="LK"

      input name="keyboard[]" type="text" id="stitle"

  /td

/tr

tr bgcolor="#FFFFFF"

  td编号:/td

  td

      input type="hidden" name="show[]" value="xingming"

      input type="hidden" name="hh[]" value="LK"

      input name="keyboard[]" type="text" id="swriter"

  /td

/tr

    tr bgcolor="#FFFFFF"

  td /td

  td

    input type="submit" name="Submit" value="马上搜索"

    font color="#666666"(不设置为不限)/font

  /td

/tr

/table

/form

/body

/html

帝国CMS反馈表单如何在别的页面调用

检查 后台反馈提交项 和 必填项 是否填写正确 如果 检查没有错 就请检查表单代码form中的action 提交路径

form name='feedback' method='post' enctype='multipart/form-data' action='/e/enews/index.php'

然后在表单form中间加入input type=hidden name=bid value=4代码 value值 是反馈分类的ID值

帝国CMS程序两个位置求修改

如果是本机的测试环境,我可以通过QQ远程帮你修改;如果是你已传到在线空间上,请告知相关后台管理地址与登录信息,可以帮你改改看


本文题目:帝国cmspost 帝国cmspage1
分享网址:http://cqcxhl.cn/article/doipecd.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP