Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] discuz 注册页面写入数据库问题

[复制链接]
WIwindson 发表于 2014-5-15 23:10:19 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X3
浏览器: 其他(帖子中请注明浏览器) 
使用模板: 官方模板
BUG地址: http://xy.com
                                
  1. <img src="https://discuz.dismall.com/forum.php?mod=image&aid=1497346&size=300x300&key=8f3b1a5141daba98&nocache=yes&type=fixnone" border="0" aid="attachimg_1497346" alt="">
复制代码

大家常见的注册页面   百度了下,看了下register.htm 和1_1_member_register.tpl.php两个文件  
提交按钮对应的html代码是
        <button class="pn pnc" id="registerformsubmit" type="submit" name="regsubmit" value="true" tabindex="1"><strong><!--{if $_GET[action] == 'activation'}-->{lang activation}<!--{else}-->{lang submit}<!--{/if}--></strong></button>

第一个问题:这里button不是应该提交到一个php文件然后php文件处理数据吗?这里哪句代码提到了该php文件

第二个问题:在discuz全部文件中,除了install文件夹中,没有直接操作数据库的sql语句,请问它是如何把用户输入的资料写入数据库的?我们可以用它的方法吗?网上给出的都是直接用sql语句插入数据

第三个问题:文件中经常出现的 类似 $this->setting['reginput']['username'] 是什么意思? setting是方法,接受两个参数吗?具体判断什么?


谢谢各位指点
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 07:15 , Processed in 0.352055 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表