请问我觉得是团长的问题题

继续请教表单的问题,谢谢团长!
前端代码,如下:
&form action=&portal.php?mod=topic&topicid=2& method=&post& autocomplete=&off&&
& && &&&&input type=&hidden& value=&{FORMHASH}& name=&formhash& /&
&div class=&f_body fs_body&&
& && & &div class=&f_component&& &p class=&f_cTitle fs_cTitle&&您的姓名&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&input type=&text& name=&xingming&&&class=&input medium fs_content fs_input& value=&&& &/div&
& && & &div class=&f_component& & &p class=&f_cTitle fs_cTitle&&你需要拍摄项目&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&
& && & &ul class=&f_optionGarden layout-three&&& &
& && & &li class=&f_optionsLi&&clearB&&
& && & &input class=&f_optionBtn& type=&radio& name=&xiangmu& id=&radio-id-2-0& value=&0&&& &
& && & &label class=&f_optionVal fs_content& for=&radio-id-2-0&&婚礼&/label&&&&/li&&&
& && &&&&li class=&f_optionsLi && &input class=&f_optionBtn& type=&radio& name=&radio-com4& id=&radio-id-2-1& value=&1&&& &
& && & &label class=&f_optionVal fs_content& for=&radio-id-2-1&&儿童&/label&&&&/li&& &
& && &&&&li class=&f_optionsLi && &input class=&f_optionBtn& type=&radio& name=&radio-com4& id=&radio-id-2-2& value=&2&&& &
& && & &label class=&f_optionVal fs_content& for=&radio-id-2-2&&写真&/label&&&&/li&&&&li class=&clearB&&&/li& &/ul& &/div&
& && &
& && & &div class=&f_component&& &p class=&f_cTitle fs_cTitle& style=&margin-top:40px&&您预约拍摄日期&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&婚礼拍摄请写您的婚期,其他项目可以选择预计拍摄时间,我们会联系你定具体拍摄时间&/p&&&&input type=&text& class=&input medium fs_content fs_input& value=&&& &/div&&&
& && &
& && &&&&div class=&f_component&& &p class=&f_cTitle fs_cTitle&&区域&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&本市请填写小区名称,如外地请填写城市&/p&&&&input type=&text& name=&quyu& class=&input medium fs_content fs_input& value=&&& &/div&&&
& && &&&
& && &&&&div class=&f_component& & &p class=&f_cTitle fs_cTitle&&拍摄人数&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&婚礼拍摄预估人数,其他类拍摄可实际填写&/p&&&&input type=&text& name=&renshu& class=&input medium fs_content fs_input& value=&&& &/div&&&
& && &&&
& && &&&&div class=&f_component& & &p class=&f_cTitle fs_cTitle&&您的手机号码&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&请确保是可以联通的***&/p&&&&input type=&text& name=&shoujihaoma& class=&input medium fs_content fs_input& value=&&& &/div&&&
& && &&&
& && &&&
&div class=&f_component& & &p class=&f_cTitle fs_cTitle&&您的微信&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&为了方便与您的沟通,请留下我们可以搜索到您微信的微信号&/p&&&&input type=&text& name=&weixin& class=&input medium fs_content fs_input& value=&&& &/div&&&
& && &
& && & &div class=&f_component&& &p class=&f_cTitle fs_cTitle&&您的邮箱&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&我们将通过邮箱发布一些拍摄内容给您&/p&&&&input type=&text&&&name=&youxiang& class=&input medium fs_content fs_input& value=&&& &/div&&&
& && &
& && & &div class=&f_component& & &p class=&f_cTitle fs_cTitle&&您的地址&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&我们将通过此地址为你邮递产品或礼品&/p&&&&input type=&text& name=&dizhi& class=&input medium fs_content fs_input& value=&&& &/div&&&
& &
& && & &div class=&f_component&& &p class=&f_cTitle fs_cTitle&&其他您希望我们提前了解的信息&span class=&f_cValidate fs_cValidate&&*&/span&&/p&&&&p class=&f_cDescribe fs_cDescribe&&您可以描述一下您喜欢的拍摄【风格】、【记录形式】、【场地环境】等可以让我提前知道的相关信息。&/p& &input type=&text& name=&qita&&&class=&input medium fs_content fs_input& style=&height:150 & value=&&&&&&/div&
&div class=&f_submit&&&&
&button class=&f_submitBtn fs_submitBtn validate_submit& value=&true& name=&tijiao& type=&submit&&提交设置&/button&
& && &&&&input type=&hidden& name=&tijiao& value=&true& /&
&/form&& && && &
&/div&复制代码
已经根据之前的提示修改过了,总共需要提交十条,但是现在的状况是依次,1 2 3 4 9这几条提交后数据库里都显示0 ,其他5 6 7 8 10 可以正常获取前端输入的内容;
php处理部分:
if(submitcheck('tijiao')) {
& && &&&$setarr = array(
& && && && && & 'xingming' =& $_POST['xingming'],
& && && && && & 'xiangmu' =& $_POST['xiangmu'],
& && && && && & 'riqi' =& $_POST['riqi'],
& && && && && && && && && && && &'quyu' =& $_POST['quyu'],
& && && && && & 'renshu' =& $_POST['renshu'],
& && && && && & 'shoujihaoma' =& $_POST['shoujihaoma'],
& && && && && && && && && && && &'weixin' =& $_POST['weixin'],
& && && && && && && && && && && &'youxiang' =& $_POST['youxiang'],
& && && && && & 'dizhi' =& $_POST['dizhi'],
& && && && && & 'qita' =& $_POST['qita'],
& && && && && &
& && &&&);
& && &&&DB::insert('yuding', $setarr, 1);
& && &
& && &&&showmessage('恭喜提交成功', &portal.php?mod=topic&topicid=2&);
}复制代码请问团长我是哪里弄错了呢?谢谢!
提问者采纳
代码方面是没有问题的,那么问题就出在数据库里面了。按照我的经验,应该是您新建的字段类型有问题,比如说您提交的数据是中文汉字,但是字段类型却选择的是数值型的,那么自然而然就无法保存进去。您再仔细检查一下!
棒棒团团长(棒棒号码:1000,来自:)
字段写的是默认的那个,应该写哪个?&
(棒棒号码:) 发表于
&input class=&f_optionBtn& type=&radio& name=&xiangmu& id=&radio-id-2-0& value=&0&&
&label class=&f_optionVal fs_content& for=&radio-id-2-0&&婚礼&/label&
&li class=&f_optionsLi && &input class=&f_optionBtn& type=&radio& name=&radio-com4& id=&radio-id-2-1& value=&1&&
&label class=&f_optionVal fs_content& for=&radio-id-2-1&&儿童&/label&
&li class=&f_optionsLi && &input class=&f_optionBtn& type=&radio& name=&radio-com4& id=&radio-id-2-2& value=&2&&
&label class=&f_optionVal fs_content& for=&radio-id-2-2&&写真&/label&
&li class=&clearB&&&/li& &/ul& &/div&
这一段代码有没有写错?前端,数据库的类型应该选啥?&
(棒棒号码:1000) 发表于
你这段代码写的好乱啊,如果实在不会的情况下,有个简单的方法,直接通过dreamweaver的插入表单功能来进行插入,插入以后就会自动生成代码,只要保证传递数据的表单name就可以了。中文类型的字段类型可以选择varchar类型。&
等待您来回答
Copyright & 2015&www.banban.so Inc. All Rights Reserved.&&
DZ棒棒团版权所有 &
苏ICP备号-1
1周一至周日&&8:00-17:30
DZ棒棒团全国统一******211.143.182.*
正团职的基准军衔为中校,正连职的基准军衔为中尉。上校和上尉正常要任职满四年才授予。
您的举报已经提交成功,我们将尽快处理,谢谢!
团长的军衔是上校、中校。
营长的军衔是少校、中校。
连长的军衔是上尉、中尉。
1.两个军衔当中,前者为主要军衔,后者为辅助军衔。
2.一般担任...
■以我国为例
■军区司令下辖2-5个集团军
■1个集团军下辖1-3个师及若干旅
■1个师下辖3-6个团(师下属没有旅一级编制)
■1个旅下辖1个团...
中国人民解放军军衔制度
军衔制是世界各国军队为明确军中指挥关系、激励士气而普遍采用的一种行之有效的军队管理制度。军衔既可以明确军人在军队中的地位、责...
大家还关注

参考资料

 

随机推荐