<?
include "../signup/mysql.php";
//echo $userid;
if($action=="ok")
{
$sql="select * from chat_user_list where userid='$nick'";
$result=mysql_query($sql) o " /> 精品视频高潮,国产a∨精品一区二区三区不卡 ,free性m.freesex欧美

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

聊天室php&amp;mysql(五)

第五個頁面name="changenick.php"


<?   
include "../signup/mysql.php";
//echo $userid;
if($action=="ok")
{
$sql="select * from chat_user_list where userid='$nick'";
$result=mysql_query($sql) or die(mysql_error());
if(!$result) echo "該呢稱已被他人占用 請重新填寫";
else   
    {
$sql="update chat_user_list set id='$nick',passwd='$passwd',sex='$sex' where userid='$userid'";
$result=mysql_query($sql)or die(mysql_error());

$sql="update chat_user set id='$nick',passwd='$passwd',sex='$sex' where userid='$userid'";
$result=mysql_query($sql)or die(mysql_error());
     }
if($result){
           echo "<script language='JavaScript'> window.close() </script>";
           }

}


?>

<html>
<head>
<title>:::FEIT聊天室:::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="NETscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#ffffff" text="#000000">

<div id="Layer1" style="position:absolute; left:40px; top:28px; width:293px; height:202px; z-index:1; background-color: #6699FF; layer-background-color: #6699FF; border: 1px none #000000"></div>
<div id="Layer2" style="position:absolute; left:144px; top:54px; width:126px; height:70px; z-index:2">  
  <form name="form1" method="post" action="<?echo $php_SELF?>?action=ok">
    <p>  
      <input type="text" name="nick" size="12" maxlength="20">
    </p>
    <p>  
      <input type="text" name="passwd" size="12" maxlength="20">
      <input type="hidden" name="userid" value="<?echo $userid ;?>">
    </p>
    <p>  
      <select name="sex">
        <option value="帥哥">帥哥</option>
        <option value="妹妹">美眉</option>
      </select>
    </p>
    <p>
      <input type="submit" name="ok" value="更改" align="center">
    </p>
  </form>
</div>
<div id="Layer3" style="position:absolute; left:72px; top:58px; width:72px; height:20px; z-index:3">用戶呢稱</div>
<div id="Layer4" style="position:absolute; left:72px; top:99px; width:71px; height:23px; z-index:4">用戶密碼</div>
<div id="Layer5" style="position:absolute; left:82px; top:139px; width:58px; height:20px; z-index:5">性別</div>
</body>
</html>

php技術聊天室php&amp;amp;mysql(五),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 永胜县| 墨玉县| 西宁市| 漳州市| 安泽县| 洪湖市| 昌平区| 昔阳县| 南涧| 汕尾市| 陇川县| 灵丘县| 夏河县| 花莲县| 五家渠市| 兰考县| 枣庄市| 金坛市| 静乐县| 东乡县| 班玛县| 山阳县| 永登县| 彰化市| 祁阳县| 麻城市| 日土县| 措美县| 亳州市| 安康市| 峡江县| 信丰县| 保靖县| 涞源县| 周至县| 苗栗县| 仙桃市| 绥中县| 绍兴县| 台南市| 平凉市|