当前位置:  编程技术>php
本页文章导读:
    ▪我的论坛源代码(七)       info.inc.php主要做些判断和信息处理 <?php function update($reginfo) {      switch ($reginfo[4])       {      case ($reginfo[4]==1):        $reginfo[4]="男";        break;      default:        $.........
    ▪我的论坛源代码(八)       reguse.php用户注册与登录页面 <? if ($action==dl&&$uname) { $uinfo=$uname."|".$upass; setcookie("FlyFoxNet",$uinfo,time()+3600); } ?> <html> <head> <title>用户注册</title> <meta http-equiv="Conten.........
    ▪我的论坛源代码(十)       reguse.inc.php处理注册用户时的信息 <? function regok($mess,$reginfo)       //记录成功后输出用户信息 { echo "<table width='70%' border='0' cellspacing='0' cellpadding='0' bgcolor='#000000' align='center'>"; echo ".........

[1]我的论坛源代码(七)
    来源: 互联网  发布时间: 2013-11-30
info.inc.php主要做些判断和信息处理

<?php
function update($reginfo)
{
     switch ($reginfo[4])
      {
     case ($reginfo[4]==1):
       $reginfo[4]="男";
       break;
     default:
       $reginfo[4]="女";
       break;
      }

      switch ($reginfo[11])
      {
      case ($reginfo[11]==1):
        $reginfo[11]="会员";
        break;
      case ($reginfo[11]==2):
        $reginfo[11]="版主";
        break;
      case ($reginfo[11]==3):
        $reginfo[11]="管理员";
        break;
      case ($reginfo[11]==4):
        $reginfo[11]="站长";
        break;
      default:
        $reginfo[11]="游客";
      break;
      }
      switch ($reginfo[6])
      {
      case ($reginfo[6]==5):
        $reginfo[6]="我是学生";
        break;
      case ($reginfo[6]==1):
        $reginfo[6]="公务员";
        break;
      case ($reginfo[6]==2):
        $reginfo[6]="公司雇员";
        break;
      case ($reginfo[6]==3):
        $reginfo[6]="自由职业";
        break;
      case ($reginfo[6]==4):
        $reginfo[6]="无所事事";
        break;
      default:
        $reginfo[6]="不告诉你";
      break;
      }
      if ($reginfo[12]==1) $reginfo[12]="是";
      else $reginfo[12]=="否";
      if ($reginfo[18]==1) $reginfo[18]="是";
      else $reginfo[18]="否";
if ($reginfo[12]==2)
{$reginfo[4]=$reginfo[4]." [保密]";
  $reginfo[5]=$reginfo[5]." [保密]";
  $reginfo[6]=$reginfo[6]." [保密]";
  $reginfo[7]=$reginfo[7]." [保密]";
  $reginfo[8]=$reginfo[8]." [保密]";
  return $reginfo;
}
else
  return $reginfo;
}
function uinfo($useinfo,$t)
{
   if ($t==name) return eregi("^[a-zA-Z0-9][_-~a-zA-Z0-9]{2,8}$",$useinfo);    //判断用户名
   else if($t==oicq) return eregi("^[0-9]{1,10}$",$useinfo);                  //oicq
   else if($t==pass) return eregi("^[a-zA-Z0-9]{1,8}$",$useinfo);             //pass
   else if($t==web)                                                            //web
      {
       $n=strstr($useinfo,'.');
       if ($n&&strlen($useinfo)>10)
       {
       $x[1]=substr($n,0,1);
       $n=strstr(substr($n,1),'.');
       $x[2]=substr($n,0,1);
       if ($x[1]==$x[2]) return OK;
       }
      }
  else return eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$",$useinfo);  //邮箱

}

function err($mess)
{
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<div align='center'><font color='ff0000'>".$mess."</font></div>";
echo "</table>";
}

function cuser($cookiem,$action)
{
if ($cookiem)                        //检查是否有此用户
   {
       $useinfo=$cookiem;  //打开COOKIE
       $query="select * from useinfo where usename='".$useinfo."'";
       $req=mysql_query($query);
       if ($req)
       {
          $user=mysql_fetch_array($req);
            if ($useinfo==$user[0])
                {
                 $useinfo=$user;
                 return $useinfo;
                }
          else
                {
             $useinfo[0]="";
             $useinfo[2]="游客";
             return $useinfo;
                }

       }
       else
       {
          $useinfo[0]="";
          $useinfo[2]="游客";
          return $useinfo;
       }
   }
else if($action)         //如果不是,则看是否有信息传入
   {
       $user=$action;
       $query="select * from useinfo where usename='".$user."'";
       $req=mysql_query($query);
       if ($req)
       {
           $user=mysql_fetch_array($req);   //找到
           if ($user[0]==$useinfo)
              {
                 $useinfo==$user;
                 return $useinfo;
              }
           else
              {
                 $useinfo[0]="";
                 $useinfo[2]="游客";
                 return $useinfo;
              }
       }
       else
       {
         $useinfo[0]="";
         $useinfo[2]="游客";
         return $useinfo;
       }
   }

else
    {
      $useinfo[0]="";
      $useinfo[2]="游客";
      return $useinfo;
    }                 //都没有
}



function err_info($mess)
{
echo "<script language='JavaScript'> alert('".$mess."'); </script>";
}
?> 

    
[2]我的论坛源代码(八)
    来源: 互联网  发布时间: 2013-11-30
reguse.php用户注册与登录页面

<?
if ($action==dl&&$uname)
{
$uinfo=$uname."|".$upass;
setcookie("FlyFoxNet",$uinfo,time()+3600);
}
?>
<html>
<head>
<title>用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
</STYLE>
<LINK href="/blog_article/js/cpcw.css" rel=stylesheet /LINK>
</head>
<?php
include "linkfox.inc.php";
include "info.inc.php";
include "reguse.inc.php";

function dlokey($user)      //登录成功显示
{
echo "<script language='JavaScript'> alert('".$user3."欢迎你再次来到狐网论坛,站长飞狐||黑暗居士欢迎你!你上次来访的时间是".$user[2]."'); </script>";
echo "<table width='50%' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#000000'>";
echo "<tr><td><table width='100%' border='0' cellspacing='1' cellpadding='1'><tr bgcolor='#006699'><td>";
echo "<div align='center'><font color='#FFFFFF'>欢迎你!<font color='00ff00'>".$user[3]."</font></font></div></td></tr><tr bgcolor='#eeeeee'><td>";
echo "<div align='center'>你上次访问本站的时间是:<font color='009900'>".$user[2]."</font></div></td></tr><tr bgcolor='#eeeeee'>";
echo "<td><div align='center'>你现在可以<a href='/blog_article/post.html'> <发布新帖> </a><a href='/blog_article/foxbbs.html'> <查看主题></a> <a href='/blog_article/useinfo/action/edit.html'> <修改信息></a></div></td></tr>";
echo "</table></td></tr></table>";
}




?>
<body bgcolor="#FFFFFF">
<table width="100%" cellpadding="4" cellspacing="0" border="0">
  <tr>
    <td height="20">
      <div align="right"></div>
    </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
  </tr>
  <tr>
    <td height="20">
      <div align="right"></div>
    </td>
    <td height="20" width="75">
      <div align="center"><img src="/blog_article/images/top_register.gif" width="74" height="21" border="0"></div>
    </td>
    <td height="20" width="75">
      <div align="center"><img src="/blog_article/images/top_members.gif" width="74" height="21"></div>
    </td>
    <td height="20" width="75"><img src="/blog_article/images/top_profile.gif" width="74" height="21"></td>
    <td height="20" width="75"><a href="/blog_article/okey/d/q.html"><img src="/blog_article/images/top_logout.gif" width="74" height="21" border="0"></a></td>
  </tr>
  <tr>
    <td height="20">
      <div align="left">当前位置:<font color="#0000FF">狐网─>狐网论坛─>会员注册</font></div>
    </td>
    <td height="20" width="75">
      <div align="center"><a href="foxbbs.php"><img src="/blog_article/images/index.gif" width="70" height="20" border="0"></a></div>
    </td>
    <td height="20" width="75">
      <div align="center"><a href="post.php"><img src="/blog_article/images/newthread.gif" width="70" height="20" border="0"></a></div>
    </td>
    <td height="20" width="75"><a href="/blog_article/superuse.html"><img src="/blog_article/images/super.gif" width="70" height="20" border="0"></a></td>
    <td height="20" width="75">
      <div align="center"><a href="/index.html"><img src="/blog_article/images/fox.gif" width="70" height="20" border="0"></a></div>
    </td>
  </tr>
</table>
<?
if ($action==xy)
{
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#000000'><tr><td>";
echo "<table width='100%' border='0' cellspacing='1' cellpadding='1'>";
echo "<tr bgcolor='#006699'><td height='20'><div align='center'><font color='#FFFFFF'>狐网论坛 规定</font></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td height='20'>";
echo "<div align='left'><p>你在这个论坛注册是完全免费的! 我们希望您遵守以下的论坛规定. 请仔细阅读下列条款. 如果您同意请按 '我同意' 按钮. 如果您不同意,";
echo "请按 '不同意' 按钮退出.</p>";
echo "<p> 1. 遵守中华人民共和国的各项有关法律法规.</p>";
echo "<p> 2. 不得在发布任何色情非法, 以及危害国家安全的言论.</p>";
echo "<p> 3. 严禁链接有关政治, 色情, 宗教, 迷信等违法信息.</p>";
echo "<p> 4. 承担一切因您的行为而直接或间接导致的民事或刑事法律责任; </p>";
echo "<p> 5. 互相尊重, 遵守互联网络道德; 严禁互相恶意攻击, 漫骂;</p>";
echo "<p> 6. 管理员及版主有权保留或删除论坛中的任意内容;</p>";
echo "<p> 7. 本站网管拥有一切管理权力. </p>";
echo "<p> 8. 在此论坛发表的原创文章,版权规作者与狐网共有。</p>";
echo "</div></td></tr></table>";
echo "</td></tr></table>";
echo "<div align='center'><FORM ACTION='/blog_article/reguse.html' METHOD='get'><INPUT TYPE='HIDDEN' NAME='action' VALUE='reg'>";
echo "<INPUT TYPE='SUBMIT' VALUE='我同意'></p></form>";
echo "<div align='center'><FORM ACTION='/blog_article/foxbbs.html' METHOD='get'><INPUT TYPE='SUBMIT' VALUE='不同意'></p></form>";
}
else if ($action==reg)
{
usemess("请在下表填写注册信息",'必填','必填','必填','必填','必填','必填','必填');
}
if ($action==add)
{
  if ($useni)        //如果有信息
     {
          for ($i=0;$i<10;$i++)
        {
          if ($bq[$i]) $usebq=$bq[$i];
        }
    $reginfo=reg($usename,$usepass,$usemail,$useweb,$useni,$useoicq,$usesex,$useage,$usezy,$useaddr,$useinf,$usety,$usebq,$useqm);
    switch ($reginfo)
      {
      case ($reginfo==1):
        usemess("错误!用户名超长",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==2):
        usemess("错误!密码超长",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==3):
        usemess("错误!oicq号非法",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==4):
        usemess("错误!用户密码含有非法字符",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==5):
        usemess("错误!用户名含有非法字符",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==6):
        usemess("错误!非法OICQ号",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==7):
        usemess("错误!非法EMAIL地址",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==8):
        usemess("非常报歉!这个用户已经存在,请重新选择",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==9):
        usemess("未知错误!",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      case ($reginfo==10):
        usemess("写入数据库错误,请与<font color='ffffff'>黑暗居士</font>联系",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
        break;
      default:
        $reginfo=update($reginfo);
        regok("注册成功,以下是你的个人信息",$reginfo);
        break;
      }
    }
    else usemess("请填写好你的信息",'必填','必填','必填','必填','必填','必填','必填');
}
if ($action==dl)      //登录函数
{
  if ($uname)
   {
     $query="select usepass,usename,enddate,useni from useinfo where usename='".$uname."'";  //检查是否存在用户
     $req=@mysql_query($query);
       if ($req)
        {
         $user=@mysql_fetch_array($req);
         if ($user[0]==$upass)              //检查口令是否正确
          {
          $time=date(Y年n月j日G时i分);
          $query="update useinfo set enddate='$time' where usename='".$uname."'";
          $req=@mysql_query($query);
          if ($req) dlokey($user);
          else dlmes("数据登录错误!");
          }
         else dlmes("用户密码不正确,请校验!");
       }
       else dlmes("不能找到用户信息,请确认!如果还未注册,请点击<a href='/blog_article/reguse/action/xy.html'>这里</a>");
  }
else dlmes("用户登录");
}
?>
</body>
</html> 

    
[3]我的论坛源代码(十)
    来源: 互联网  发布时间: 2013-11-30
reguse.inc.php处理注册用户时的信息

<?

function regok($mess,$reginfo)       //记录成功后输出用户信息
{
echo "<table width='70%' border='0' cellspacing='0' cellpadding='0' bgcolor='#000000' align='center'>";
echo "<tr><td><table width='100%' border='0' cellspacing='1' cellpadding='1' align='center' bgcolor='#eeeeee'><tr bgcolor='#006699'><td colspan='4'><div align='center'><font color='ffffff'>".$mess."</font></div></td></tr>";
echo "<tr ><td width='15%' ><div align='left'>ID号:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[13]."</font></div></td>";
echo "<td width='15%'><div align='left'>用户:</div></td><td width='35%' ><div align='center'><font color='#FF0000'>".$reginfo[0]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>密码:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[1]."</font></div></td>";
echo "<td width='15%'><div align='left'>主页:</div></td><td width='35%' ><div align='center'><font color='#FF0000'>".$reginfo[9]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>邮箱:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[8]."</font></div></td>";
echo "<td width='15%'><div align='left'>oicq:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[3]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>昵称:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[2]."</font></div></td>";
echo "<td width='15%'><div align='left'>等级:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[11]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>性别:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[4]."</font></div></td>";
echo "<td width='15%'><div align='left'>年龄:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[5]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>职业:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[6]."</font></div></td>";
echo "<td width='15%'><div align='left'>来自:</div></td><td width='35%' ><div align='center'><font color='#FF0000'>".$reginfo[7]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>信息保密:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[12]."</font></div></td>";
echo "<td width='15%'><div align='left'>签名:</div></td><td width='35%' ><div align='center'><font color='#FF0000'>".$reginfo[10]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>邮件通知:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[18]."</font></div></td>";
echo "<td width='15%'><div align='left'>注册时间:</div></td><td width='35%' ><div align='center'><font color='#FF0000'>".$reginfo[15]."</div></td></tr>";
echo "<tr ><td width='15%'><div align='left'>登录时间:</div></td><td width='35%'><div align='center'><font color='#FF0000'>".$reginfo[16]."</font></div></td>";
echo "<td width='15%'><div align='left'>头像:</div></td><td width='35%' ><div align='center'><img src='/blog_article/images/index.html".$reginfo[14].".gif'></div></td></tr>";
$reginfo=$reginfo[0];
echo "<tr bgcolor='#006699'><td colspan='4'><div align='center'><a href='/blog_article/reguse/action/dl/amp;use/.html".$reginfo."'>用户登录</a></div></td></tr>";
echo "</table></td></tr></table>";


}



     //检查信息并写入记录
function reg($usename,$usepass,$usemail,$useweb,$useni,$useoicq,$usesex,$useage,$usezy,$useaddr,$useinf,$usety,$usebq,$useqm)
{
  if ($usename)     //如果有用户名传入则处理   用户注册模块
    {
      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."'";  //是否已经存在用户
          $req=mysql_query($query);
          $useinfp=mysql_fetch_array($req);
          if ($useinfp[0]) return 8;
          else
            {
              $time=date(Y年n月j日G时i分);
              $useqm=nl2br($useqm);                                                                            //写入用户信息
              $query="insert into useinfo (usename,usepass,usemail,useweb,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);
              if ($req)
                 {
                 $query="select * from useinfo where usename='".$usename."'";  //取出用户信息,并传出用户端
                 $req=mysql_query($query);
                 $useinfo=mysql_fetch_array($req);
                 return $useinfo;
                 }
              else return 10;
            }
        }
        return 9;
    }
}

function usemess($mess,$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm)      //信息输入表单
{
echo "<FORM METHOD=post>";
echo "<table width='90%' border='0' cellspacing='0' cellpadding='0' bgcolor='#000000' align='center'>";
echo "<tr><td><table width='100%' border='0' cellspacing='1' cellpadding='1' align='center'>";
echo "<tr bgcolor='#006699'><td colspan='2'><font color='ffffff'><div align='center'>狐网论坛用户注册---<font color='00ff00'>".$mess."</font></div></font></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'> 用 户 名:<font color='#FF0000'>八位,第一位必须是字母</FONT></div></td><td width='52%'><input onFocus='this.select()' type='text' name='usename' size='30' maxlength='8' value='".$usename."'></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>密  码:<font color='#FF0000'>八位,数字和字母组合.</font></div></td><td width='52%'><input type='password' name='usepass' size='30' maxlength='8'></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>电子信箱:<font color='#FF0000'>请填写真实的邮箱地址。</font></div></td><td width='52%'><input onFocus='this.select()' type='text' name='usemail' size='50' maxlength='50' value='".$usemail."'></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>个人主页:</div></td><td width='52%'><div align='left'><input onFocus='this.select()' type='text' name='useweb' size='50' maxlength='50' value='".$useweb."'></div></td></tr>";
echo "<tr bgcolor='#006699'><td colspan='2'><div align='center'><font color='#FFFFFF'>个人信息设定</font></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>你的昵称:</div></td><td width='52%'><div align='left'><input onFocus='this.select()' type='text' name='useni' size='30' maxlength='15' value='".$useni."'></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>OICQ:</div></td><td width='52%'><div align='left'><input onFocus='this.select()' type='text' name='useoicq' size='20' maxlength='20' value='".$useoicq."'></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>性  别:</div></td><td width='52%'><div align='left'><select onFocus='this.select()' name='usesex'><option value='1' selected>我是男生</option><option value='0'>我是女生</option></select></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>年  龄:</div></td><td width='52%'><div align='left'><select onFocus='this.select()' name='useage'><option value='14'>15岁以下</option><option value='15'>15 岁</option><option value='16'>16 岁</option><option value='17'>17 岁</option>";
echo "<option value='18'>18 岁</option><option value='19'>19 岁</option><option value='20' selected>20 岁</option><option value='21'>21 岁</option><option value='22'>22 岁</option><option value='23'>23 岁</option><option value='24'>24 岁</option><option value='25'>25 岁</option><option value='26'>26 岁</option><option value='27'>27 岁</option><option value='28'>28 岁</option><option value='29'>29 岁</option><option value='30'>30或以上</option></select></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>职  业:</div></td><td width='52%'><div align='left'><select onFocus='this.select()' name='usezy'><option value='5' selected>我是学生</option><option value='1'>公务员</option><option value='2'>公司雇员</option><option value='3'>自由职业</option><option value='4'>无所事事</option><option value='5'>不告诉你</option></select></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>来自何方:</div></td><td width='52%'><div align='left'><input onFocus='this.select()' type='text' name='useaddr' size='50' maxlength='50' value='".$useaddr."'></div></td></tr>";
echo "<tr bgcolor='#006699'><td colspan='2'><div align='left'></div><div align='center'><font color='#FFFFFF'>参数设定</font></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>是否充许他人查看你的信息:</div></td><td width='52%'><div align='left'><input type='radio' name='useinf' value='2'>否  <input type='radio' name='useinf2' value='1' checked>是</div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%' valign='top'><div align='left'>个人签名档:</div></td><td width='52%'><div align='left'><textarea onFocus='this.select()' name='useqm' cols='40' wrap='VIRTUAL' rows='5'>".$useqm."</textarea></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td width='40%'><div align='left'>是否允许版主或管理员给你发邮件通知:</div></td><td width='52%'><div align='left'><input type='radio' name='usety' value='2'>否  <input type='radio' name='usee2' value='1' checked>是</div></td></tr>";
echo "<tr bgcolor='#006699'><td colspan='2'><div align='center'><font color='#FFFFFF'>头像设定</font></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td colspan='2'><div align='center'><input type='radio' name='bq[0]' value='a'><img src='/blog_article/images/a.gif' width='15' height='15' checked>  <input type='radio' name='bq[1]' value='1'><img src='/blog_article/images/1.gif' width='15' height='15'>  <input type='radio' name='bq[2]' value='2'><img src='/blog_article/images/2.gif' width='15' height='15'>  <input type='radio' name='bq[3]' value='3'><img src='/blog_article/images/3.gif' width='15' height='15'>  <input type='radio' name='ba[4]' value='4'><img src='/blog_article/images/4.gif' width='15' height='15'>  ";
echo "<input type='radio' name='bq[5]' value='5'><img src='/blog_article/images/5.gif' width='15' height='15'>  <input type='radio' name='bq[6]' value='6'><img src='/blog_article/images/6.gif' width='15' height='15'>  <input type='radio' name='ba7' value='[7]'><img src='/blog_article/images/7.gif' width='15' height='15'>  <input type='radio' name='ba[8]' value='8'><img src='/blog_article/images/8.gif' width='15' height='15'>  <input type='radio' name='ba[9]' value='9'><img src='/blog_article/images/9.gif' width='15' height='15'></div></td></tr>";
echo "<tr bgcolor='#eeeeee'><td colspan='2'></td></tr>";
echo "</table></td></tr></table>";
echo "<div align='center'><INPUT TYPE='HIDDEN' NAME='action' VALUE='add'><INPUT TYPE='SUBMIT' name='submit' VALUE='提 交!'><INPUT RESET' NAME='Reset' VALUE='重 填'></form></div>";
}
function dlmes($mess)
{
echo "<table width='50%' border='0' cellspacing='0' cellpadding='0' bgcolor='#000000' align='center'>";
echo "<tr><td>";
echo "<table width='100%' border='0' cellspacing='1' cellpadding='1' bgcolor='#eeeeee'><form method='post'>";
echo "<tr bgcolor='#009999'><td><div align='center'><font color='#FFFFFF'>".$mess."</font></div></td></tr>";
echo "<tr><td><div align='center'>用户名:<input type='text' name='uname'></div></td></tr>";
echo "<tr><td><div align='center'>密 码:<input type='password' name='upass'></div></td></tr>";
echo "<tr><td><div align='center'><input type='submit' name='Submit' value='确定'></div></td></tr>";
echo "<tr><td><input type='hidden' name='action' value='dl'></td></tr>";
echo "<tr><td><div align='center'><a href='/blog_article/useinfo/action/pass.html'>[忘记密码]</a>     <a href='/blog_article/reguse/action/xy.html'>[我要注册]</a></div></td></tr>";
echo "<tr bgcolor='#009999'><td height='20'></td></tr>";
echo "</form></table></td></tr></table>";
}
?> 

    
最新技术文章:
▪PHP函数microtime()时间戳的定义与用法
▪PHP单一入口之apache配置内容
▪PHP数组排序方法总结(收藏)
▪php数组排序方法大全(脚本学堂整理奉献)
▪php数组排序的几个函数(附实例)
▪php二维数组排序(实例)
▪php根据键值对二维数组排序的小例子
▪php验证码(附截图)
▪php数组长度的获取方法(三个实例)
▪php获取数组长度的方法举例
▪判断php数组维度(php数组长度)的方法
▪php获取图片的exif信息的示例代码
▪PHP 数组key长度对性能的影响实例分析
▪php函数指定默认值的方法示例
▪php提交表单到当前页面、提交表单后页面重定...
▪php四舍五入的三种实现方法
▪php获得数组长度(元素个数)的方法
▪php日期函数的简单示例代码
▪php数学函数的简单示例代码
▪php字符串函数的简单示例代码
▪php文件下载代码(多浏览器兼容、支持中文文...
▪php实现文件下载、支持中文文件名的示例代码...
▪php文件下载(防止中文文件名乱码)的示例代码
▪解决PHP文件下载时中文文件名乱码的问题
▪php数组去重(一维、二维数组去重)的简单示例
▪php小数点后取两位的三种实现方法
▪php Redis 队列服务的简单示例
▪PHP导出excel时数字变为科学计数的解决方法
▪PHP数组根据值获取Key的简单示例
▪php数组去重的函数代码示例
 


站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3