首页 > CMS > 织梦DEDE > 正文

织梦CMS注册会员时增加字段

2024-07-09 22:52:04
字体:
来源:转载
供稿:网友

步骤: 

1、找到根目录下的/member/templets/reg-new.htm,增加一行表单,如增加一行邮编表单: 

<li><span>邮编:</span><input type="text" class="intxt w200" name="youbian" /></li> 

2、打开数据库,找到表“dede_member”,增加一个“邮编”字段。 

3、找到根目录下的/member/reg-new.php,185行下加一段代码:$youbian = $_POST["youbian"];下面的变量“$inQuery”改为: 

  1. $inQuery = "INSERT INTO `xiuzhanwang_member` (`mtype` ,`userid` ,`pwd` ,`uname` ,`sex` ,`rank` ,`money` ,`email` ,`scores` ,
  2. `matt`, `spacesta` ,`face`,`safequestion`,`safeanswer` ,`jointime` ,`joinip` ,`logintime` ,`loginip`,`youbian` )
  3. VALUES ('$mtype','$userid','$pwd','$uname','$sex','10','$dfmoney','$email','$dfscores',
  4. '0','$spaceSta','','$safequestion','$safeanswer','$jointime','$joinip','$logintime','$loginip','$youbian'); ";
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表