产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 【求解】前台表单提交出现错误
flyfox13 - 2017/6/27 16:36:42

13526
flyfox13 - 2017/6/28 15:52:12
[b]回复 [url=http://bbs.pageadmin.net/showtopic-36359.aspx#138601]2楼[color=Olive]qq842330359[/color]的帖子[/url][/b]

[url]http://www.xmnewborn.com/index.aspx?lanmuid=89&sublanmuid=737[/url]
xiyou - 2017/6/28 15:57:08
你的表单有问题啊,把表单发出来看看
flyfox13 - 2017/6/28 16:07:50
<script type="text/javascript" src="/e/js/calendar.js"></script>
<script type="text/javascript" src="/e/js/zdyform.js"></script>
<style type="text/css">
.yycg_table{border:1px solid #eeeeee}
.yycg_table td{border:1px solid #eeeeee;padding:5px}
</style>
<form name="yycg" method="post" enctype="multipart/form-data" action="/e/aspx/post.aspx">
<script charset="utf-8" src="/e/incs/kindeditor/kindeditor.js" type="text/javascript"></script>
<script type="text/javascript">
var KE_content;
KindEditor.ready(function(K) {
KE_content= K.create("#content",
{
uploadJson :kindeditor_uploadJson,
fileManagerJson :kindeditor_fileManagerJson,
allowImageUpload:false,
allowFlashUpload:false,
allowMediaUpload:false,
allowFileUpload:false,
allowFileManager :false,
items :kindeditor_NormalItems,
newlineTag:"p",
filterMode :true,
extraFileUploadParams:{siteid:"1"}
}
);
});
</script>
    <table border="0" cellpadding="0" cellspacing="0" align="center" width="95%" class="yycg_table ke-zeroborder">
        <tbody>
            <tr>
                <td align="right">
                    姓名 <span style="color:#ff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="title" id="title" maxlength="200" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    电话 <span style="color:#ff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="titlepic" id="titlepic" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    参观时间 <span style="color:#ff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="email" id="email" maxlength="50" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    预产期 <span style="color:#ff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="thedate" id="thedate" maxlength="50" /><a href="javascript:open_calendar(&quot;thedate&quot;)"><img src="/e/images/public/date.gif" border="0" height="20" hspace="2" align="absbottom" /></a>
                </td>
            </tr>
            <tr>
                <td align="right">
                    预备生产医院 <span style="color:#ff0000;">*</span>
                </td>
                <td>
                    <textarea name="content" id="content" style="width:100%;height:300px;"></textarea>
                </td>
            </tr>
            <tr>
                <td align="right">
                    验证码<span style="color:#ff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="vcode" id="vcode" maxlength="4" size="4" /> <img src="/e/aspx/yzm.aspx" onclick="Code_Change(&quot;vcode_img&quot;)" align="absmiddle" border="0" id="vcode_img" style="cursor:pointer;" alt="点击更换" />
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="hidden" name="checked" value="0" /><input type="hidden" name="showcode" value="0" /><input type="hidden" name="to" value="" /><input type="hidden" name="mailto" value="" /><input type="hidden" name="mailreply" value="" /><input type="hidden" name="mailsubject" value="" /><input type="hidden" name="mailbody" value="" /><input type="hidden" name="insertdatabase" value="1" /><input type="hidden" name="siteid" value="1" /><input type="hidden" name="formtable" value="yycg" /><input type="hidden" name="mustname" value="姓名,电话,参观时间,预产期,预备生产医院," /><input type="hidden" name="mustfield" value="title,titlepic,email,thedate,content," /><input type="hidden" name="musttype" value="text,text,text,text,editor," /><input type="button" class="bt" value=" 提交 " onclick="return set_yycg()" /> <input type="reset" value=" 重设 " class="bt" />
                </td>
            </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
function set_yycg()
{
document.forms["yycg"].mailto.value="";
document.forms["yycg"].mailreply.value="";
document.forms["yycg"].mailsubject.value="";
document.forms["yycg"].mailbody.value="";
return Check_ZdyForm("yycg");
}
function yycg_zdycheck(){
KE_content.sync();
return true;
}
</script>
xiyou - 2017/6/30 9:12:00
你新建一个表单吧,你这是在原有的表单上改的,把原有字段的表单类型改过来的,第一个报错的就是电话,你重新建一个表吧
1
查看完整版本: 【求解】前台表单提交出现错误