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

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

【求解】前台表单提交出现错误 [复制链接]

1#

分享 转发
TOP
2#

[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]
TOP
3#

你的表单有问题啊,把表单发出来看看
TOP
4#

<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,
allowImageUploadalse,
allowFlashUploadalse,
allowMediaUploadalse,
allowFileUploadalse,
allowFileManager alse,
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="colorff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="title" id="title" maxlength="200" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    电话 <span style="colorff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="titlepic" id="titlepic" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    参观时间 <span style="colorff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="email" id="email" maxlength="50" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    预产期 <span style="colorff0000;">*</span>
                </td>
                <td>
                    <input type="text" name="thedate" id="thedate" maxlength="50" /><a href="javascriptpen_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="colorff0000;">*</span>
                </td>
                <td>
                    <textarea name="content" id="content" style="width:100%;height:300px;"></textarea>
                </td>
            </tr>
            <tr>
                <td align="right">
                    验证码<span style="colorff0000;">*</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>
TOP
5#

你新建一个表单吧,你这是在原有的表单上改的,把原有字段的表单类型改过来的,第一个报错的就是电话,你重新建一个表吧
TOP
发新话题 回复该主题