PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

消息: 'document.forms.wylc.mailto' 为空或不是对象 [复制链接]

1#
下边是我的网站的一个模块的代码,点击“提交”的时候显示“网页上有错误”,网页错误详细信息
用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
时间戳: Mon, 28 Apr 2014 03:13:54 UTC  
消息: 'document.forms.wylc.mailto' 为空或不是对象

<div id="tabs2" class="tab" style="border-bottom:1px solid #dddddd">
<dl id="tabheader2" class="tabheader">
    <dd><a>我要贷款</a> </dd>
    <dd><a>我要理财</a> </dd>
</dl>
<dl id="tabcontent2" class="tabcontent">
    <dd><script type="text/javascript" src="/e/js/zdyform.js"></script>
<form enctype="multipart/form-data" method="post" action="/e/aspx/post.aspx" name="wylc">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
        <tbody>
            <tr>
                <td colspan="2" align="center"><input checked="checked" type="hidden" name="sort" value="638" /></td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">姓&nbsp;&nbsp;&nbsp; 名</td>
                <td width="70%"><input id="title" maxlength="50" name="title" type="text" /></td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">性&nbsp;&nbsp;&nbsp; 别</td>
                <td width="70%"><input type="radio" name="pa_xb" value="先生" />男 <input type="radio" name="pa_xb" value="女士" />女</td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">贷款金额</td>
                <td width="70%"><input id="pa_jine" maxlength="50" name="pa_jine" type="text" />万元</td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">联系电话</td>
                <td width="70%"><input id="pa_lxdh" maxlength="50" name="pa_lxdh" type="text" /></td>
            </tr>
            <tr>
                <td colspan="2" align="center" height="37px"><input type="hidden" name="checked" value="1" /><input type="hidden" name="showcode" value="0" /><input type="hidden" name="to" /><input type="hidden" name="mailto" /><input type="hidden" name="mailreply" /><input type="hidden" name="mailsubject" /><input type="hidden" name="mailbody" /><input type="hidden" name="sendmail" value="0" /><input type="hidden" name="insertdatabase" value="1" /><input type="hidden" name="siteid" value="1" /><input type="hidden" name="formtable" value="wylc" /><input type="hidden" name="mustname" value="姓名,性别,贷款金额,联系电话," /><input type="hidden" name="mustfield" value="title,pa_xb,pa_jine,pa_lxdh," /><input type="hidden" name="musttype" value="text,radio,text,text," /><input class="bt" type="button" value="快 速 申 请" /></td>
            </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
function set_wylc()
{
document.forms["wylc"].mailto.value="";
document.forms["wylc"].mailreply.value="";
document.forms["wylc"].mailsubject.value="";
document.forms["wylc"].mailbody.value="";
return Check_ZdyForm("wylc");
}

function wylc_zdycheck(){
return true;
}
</script> </dd>
    <dd><script type="text/javascript" src="/e/js/zdyform.js"></script>
<form enctype="multipart/form-data" method="post" action="/e/aspx/post.aspx" name="wylc">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
        <tbody>
            <tr>
                <td colspan="2" align="center"><input type="hidden" name="sort" value="639" /></td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">姓&nbsp;&nbsp;&nbsp; 名</td>
                <td width="70%"><input id="title" maxlength="50" name="title" type="text" /></td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">性&nbsp;&nbsp;&nbsp; 别</td>
                <td width="70%"><input type="radio" name="pa_xb" value="先生" />男 <input type="radio" name="pa_xb" value="女士" />女</td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">理财金额</td>
                <td width="70%"><input id="pa_jine" maxlength="50" name="pa_jine" type="text" />万元</td>
            </tr>
            <tr>
                <td width="30%" align="center" height="38px">联系电话</td>
                <td width="70%"><input id="pa_lxdh" maxlength="50" name="pa_lxdh" type="text" /></td>
            </tr>
            <tr>
                <td colspan="2" align="center" height="37px"><input type="hidden" name="checked" value="1" /><input type="hidden" name="showcode" value="0" /><input type="hidden" name="to" /><input type="hidden" name="mailto" /><input type="hidden" name="mailreply" /><input type="hidden" name="mailsubject" /><input type="hidden" name="mailbody" /><input type="hidden" name="sendmail" value="0" /><input type="hidden" name="insertdatabase" value="1" /><input type="hidden" name="siteid" value="1" /><input type="hidden" name="formtable" value="wylc" /><input type="hidden" name="mustname" value="姓名,性别,贷款金额,联系电话," /><input type="hidden" name="mustfield" value="title,pa_xb,pa_jine,pa_lxdh," /><input type="hidden" name="musttype" value="text,radio,text,text," /><input class="bt" type="button" value="快 速 申 请" /></td>
            </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
function set_wylc()
{
document.forms["wylc"].mailto.value="";
document.forms["wylc"].mailreply.value="";
document.forms["wylc"].mailsubject.value="";
document.forms["wylc"].mailbody.value="";
return Check_ZdyForm("wylc");
}

function wylc_zdycheck(){
return true;
}
</script> </dd>
</dl>
</div>
<script type="text/javascript">
tabs("tabheader2","tabcontent2","onmouseover")
</script>
分享 转发
TOP
2#

一个页面出现两个name=wylc导致重复了,js无法获取信息
TOP
发新话题 回复该主题