Home > Backend Development > PHP Tutorial > My forum source code (10)_PHP tutorial

My forum source code (10)_PHP tutorial

WBOY
Release: 2016-07-21 16:04:08
Original
941 people have browsed it

reguse.inc.php处理注册用户时的信息


function regok($mess,$reginfo) //记录成功后输出用户信息
{
echo "

";
echo "
";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
$reginfo=$reginfo[0];
echo "";
echo "
".$mess."
ID号:
".$reginfo[13]."
用户:
".$reginfo[0]."
密码:
".$reginfo[1]."
主页:
".$reginfo[9]."
邮箱:
".$reginfo[8]."
oicq:
".$reginfo[3]."
昵称:
".$reginfo[2]."
等级:
".$reginfo[11]."
性别:
".$reginfo[4]."
年龄:
".$reginfo[5]."
职业:
".$reginfo[6]."
来自:
".$reginfo[7]."
信息保密:
".$reginfo[12]."
签名:
".$reginfo[10]."
邮件通知:
".$reginfo[18]."
注册时间:
".$reginfo[15]."
登录时间:
".$reginfo[16]."
头像:
";


}



//Check the information and write the record
function reg($usename,$usepass,$usemail,$useweb,$useni,$useoicq,$usesex,$useage, $usezy,$useaddr,$useinf,$usety,$usebq,$useqm)
{
if ($usename) //If a username is passed in, process it User registration module
{
if(strlen($usename)>8) return 1;
else if(strlen($usepass)>8) return 2;
else if(strlen($useoicq)>12) return 3;
else if(!uinfo($usepass,pass)) return 4;
else if(!uinfo($usename,name)) return 5;
else if(!uinfo($useoicq,oicq) ) return 6;
else if(!uinfo($usemail,mail)) return 7;
else
{
if(!$useinf) $useinf=2;
$query= "select * from useinfo where usename='".$usename."'"; //Whether the user already exists
$req=mysql_query($query);
$useinfp=mysql_fetch_array($req); >                                                                                                            m=nl2br($useqm ); web,useni,useoicq,usesex,useage,usezy,useaddr,useinf,usety,usebq,useqm,useattr,regdate ,enddate) values ​​('".$usename."','".$usepass."','".$usemail."','".$useweb."','".$useni."', '".$useoicq."','".$usesex."','".$useage."','".$usezy."','".$useaddr."','".$useinf ."','".$usety."','".$usebq."','".$useqm."',1,now(),'".$time."')";
              $req=mysql_query($query); usename."'"; //Get the user Information, and outgoing client
$req=mysql_query($query);
$useinfo=mysql_fetch_array($req);
return $useinfo;
                                                                                                                                                                                                                                                                                    since 🎜>                                                                                                                                                                                                                                 

function usemess($mess,$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm)      //信息输入表单
{
echo "
";
echo "";
echo "
";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "
狐网论坛用户注册---".$mess."
用 户 名:八位,第一位必须是字母
密  码:八位,数字和字母组合.
电子信箱:请填写真实的邮箱地址。
个人主页:
个人信息设定
你的昵称:
OICQ:
性  别:
年  龄:
职  业:
来自何方:
参数设定
是否充许他人查看你的信息:
否  
个人签名档:
是否允许版主或管理员给你发邮件通知:
否  
头像设定
         ";
echo "        
";
echo "
";
}
function dlmes($mess)
{
echo "";
echo "
";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "" ;
echo "
".$mess."
用户名:
密 码:
";
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316053.htmlTechArticlereguse.inc.php handles information when registering users? function regok($mess,$reginfo)//record After success, output user information { echo table width='70%' border='0' cellspacing='0' cellpadding='0'...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template