我现在急需做毕业设计,但是我自己用php做得文章论坛系统缺少登录代码和密码修改代码,所以现在我的毕业设计没有办法进行,请各位高手帮帮忙啦……

解决方案 »

  1.   

    这个去网上找很多的,随便去网上找了个
    http://www.winu.cn/ask/question.php?qid=5991
      

  2.   

    我有一个,自己弄的,没有密码修改的功能,这可以自己写多来,
    建议LZ自己动手做。但如果LZ要的话可以联系我
      

  3.   

    <?php 
    ob_start();
    include_once('./lib/config.php');
    include_once('./lib/lib.php');
    include_once('./lib/mysql_lib.php');
    include_once('./lib/common.php');MysqlOpen();
    $me = './'.basename(__FILE__);$ctrl = new CommonCtrl();
    $input = $ctrl->PerseParam();
    /*echo "<pre>";
    var_dump($input);
    echo "</pre>";*/
    $user_name =  $input['user_name'];
    $user_pwd =  $input['user_pwd'];
    $login_flg =  $input['flg'];
    $err = '';
    if($login_flg ==1){
    if(!empty($user_name)||!empty($user_pwd)){

    $sql_login = "select user_no from manage where user_name = '".$user_name."' and user_password = '".$user_pwd."'";
    $result_login = mysql_query($sql_login);
    $rs_login = mysql_fetch_array($result_login, MYSQL_ASSOC);
    if(!empty($rs_login['user_no'])){
    setcookie("login","super");
    header("Location: back_news.php");
    }else{
    $err = '用户名或密码不太对吧! 重试一次?';
    }
    }else{
    $err="请输入用户名密码!";
    }
    }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>xxx欢迎您</title>
    <style type="text/css">
    <!--
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #0076C2;
    }
    -->
    </style>
    <link href="sample.css" rel="stylesheet" type="text/css" />
    </head><body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="143" align="left" background="image/back_image/bic_top_bg.gif"><img src="image/back_image/pic_top.jpg" width="700" height="143" /></td>
      </tr>
    </table>
       <table width="300" border="0" cellspacing="0" cellpadding="0"><br>
       <tr>
            <td height="40" >&nbsp;</td>
            <td height="40" class="word_black_bold12" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $err;?>
           </td>
          </tr>
         </table>
    <form name="log_in" action="" method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="2%" height="205" align="left" valign="middle">&nbsp;</td>
        <td width="98%" align="left" valign="middle">
        <table width="300" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="40" colspan="2"><img src="image/back_image/icon_back_top.jpg" width="300" height="40" /></td>
          </tr>
          <tr>
            <td width="90" height="40" align="center" bgcolor="#FFFFFF" class="word_black_bold12">用户名:</td>
            <td width="210" bgcolor="#FFFFFF"><input type="text" name="user_name" /></td>
          </tr>
          <tr>
            <td height="40" align="center" bgcolor="#FFFFFF" class="word_black_bold12">密码:</td>
            <td height="40" bgcolor="#FFFFFF"><input type="text" name="user_pwd" /></td>
          </tr>
          <tr>
            <td height="40" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="40" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="提交" />
            <input type="hidden" name="flg" value="1"/></td>
          </tr>
         
        </table>
     </td>
      </tr>
    </table>
    </form>
    </body>
    </html>