谁需要密码验证的原代码?自己做的,手工精良,童叟无欺, 给我一个 EMail [email protected] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 什么意思?linxu or win下的? 共享一下吧! [email protected] 如果可以的话,给我一份,先谢过。 [email protected] 嗡……嗡……救命啊……开玩笑的 :)[email protected]谢谢! 我也要 [email protected]Thank 给我一个好吗?e-mail:[email protected] <?phpif (!isset($ppp) or $ppp=="") { $ppp=0; }if ($ppp==0){echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\"><body><TABLE border=0 cellPadding=1 cellSpacing=1 height=320 width=140><tbody><tr><td height=8></td><tr> <tr> <td vAlign=top><FIELDSET class=fieldset><LEGEND>开始使用我的QQ</LEGEND> <table border=0 cellPadding=0 cellSpacing=0 height=62 align=center> <tbody> <form action=$php_self> <tr><td><br> 用户名字:<br><input type=text name=\"yname\" class=\"input\" size=13> <br> </td></tr> <tr><td> 用户口令:<br> <input type=password name=\"password\" class=\"input\" size=13> <br> </td></tr> <tr><td> <hr length=120> <input type=hidden name=\"ppp\" value=\"1\"> <input type=image src=images/login.gif value=\"登录\"> <input type=image src=images/cancel.gif value=\"取消\" onclick=window.close()> </td></tr> </form> </tbody> <tr><td align=center><br> <input type=button value=注册向导 class=button_summit onclick=\"window.open('cmp.php','','left=390,top=260,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=133,height=160');self.close()\"><br></td></tr> </table></FIELDSET></td></tr></tbody></TABLE></body>";}if($ppp==1) {$connect=mysql_connect('localhost','root','rootcanpass');$select=mysql_select_db('qq2001',$connect);$query1=mysql_query('select * from pass order by id desc',$connect);$array1=mysql_fetch_array($query1);$idend=$array1[id];for ($id=1;$id<=$idend;$id++){$mysql2="select * from pass where id=$id";$query2=mysql_query($mysql2,$connect);$array2=mysql_fetch_array($query2);if($array2[name]==$yname&&$array2[passw]==$password) {$randid = md5(uniqid(rand()));$ip=getenv("remote_addr");$match_flag="select * from user0 where name='$array2[name]'";$query_flag=mysql_query($match_flag,$connect); $array_flag=mysql_fetch_array($query_flag);if ($array_flag[flag]!=1) {$query3=mysql_query('select * from pass',$connect);$sql3="update pass set uip='$ip' where name='$yname'";$sql4="update pass set randid='$randid' where name='$yname'";$result1=mysql_query($sql3); $result2=mysql_query($sql4); $sql_flag="update user0 set flag=1 where name='$array2[name]'";$result3=mysql_query($sql_flag); $close=mysql_close();Header("Location:q2.php?name=$yname&randid=$randid");exit; } //if array_flag==1else {echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\"><body class=WebPager oncontextmenu=\"return false;\"> <table > <tbody>you have already use qq2001 </tbody> </table></body>";exit;}}}echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\"><body class=WebPager oncontextmenu=\"return false;\"> <table border=0 cellPadding=1 cellSpacing=1 height=320 width=140> <tbody>password or name erro</tbody> </table></body>";}?> 哪个帮个忙,把PHP函数修改为JS函数,谢谢! apache benchmark的并发数问题 关于PHP导出excel的问题 php+mysql求一问题的解决思路 关于php页面文件的编码! 看来需要帮助??>session 请问高手,这是什么问题? 怎么在多个.php文件中使用同一个全局变量? 一個比較簡單的問題,請給以解決 phpstudy 像csdn这样,输入用户名,密码打开一个新页,如何把用户名,密码变量传到新打开的网页中 我的php连到数据库的时候,总会出现如下的问题
开玩笑的 :)
[email protected]
谢谢!
Thank
e-mail:[email protected]
if (!isset($ppp) or $ppp=="") {
$ppp=0;
}
if ($ppp==0){
echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">
<body>
<TABLE border=0 cellPadding=1 cellSpacing=1 height=320 width=140>
<tbody>
<tr><td height=8></td><tr>
<tr>
<td vAlign=top>
<FIELDSET class=fieldset><LEGEND>开始使用我的QQ</LEGEND>
<table border=0 cellPadding=0 cellSpacing=0 height=62 align=center>
<tbody>
<form action=$php_self>
<tr><td><br>
用户名字:<br><input type=text name=\"yname\" class=\"input\" size=13>
<br>
</td></tr>
<tr><td>
用户口令:<br>
<input type=password name=\"password\" class=\"input\" size=13>
<br>
</td></tr>
<tr><td>
<hr length=120>
<input type=hidden name=\"ppp\" value=\"1\">
<input type=image src=images/login.gif value=\"登录\">
<input type=image src=images/cancel.gif value=\"取消\" onclick=window.close()>
</td></tr>
</form>
</tbody>
<tr><td align=center><br>
<input type=button value=注册向导 class=button_summit onclick=\"window.open('cmp.php','','left=390,top=260,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=133,height=160');self.close()\"><br>
</td></tr>
</table>
</FIELDSET></td>
</tr></tbody>
</TABLE>
</body>
";
}if($ppp==1) {
$connect=mysql_connect('localhost','root','rootcanpass');
$select=mysql_select_db('qq2001',$connect);
$query1=mysql_query('select * from pass order by id desc',$connect);
$array1=mysql_fetch_array($query1);
$idend=$array1[id];
for ($id=1;$id<=$idend;$id++)
{
$mysql2="select * from pass where id=$id";
$query2=mysql_query($mysql2,$connect);
$array2=mysql_fetch_array($query2);
if($array2[name]==$yname&&$array2[passw]==$password) {$randid = md5(uniqid(rand()));
$ip=getenv("remote_addr");
$match_flag="select * from user0 where name='$array2[name]'";
$query_flag=mysql_query($match_flag,$connect);
$array_flag=mysql_fetch_array($query_flag);if ($array_flag[flag]!=1) {
$query3=mysql_query('select * from pass',$connect);
$sql3="update pass set uip='$ip' where name='$yname'";
$sql4="update pass set randid='$randid' where name='$yname'";
$result1=mysql_query($sql3);
$result2=mysql_query($sql4); $sql_flag="update user0 set flag=1 where name='$array2[name]'";
$result3=mysql_query($sql_flag);
$close=mysql_close();Header("Location:q2.php?name=$yname&randid=$randid");
exit;
} //if array_flag==1
else {
echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">
<body class=WebPager oncontextmenu=\"return false;\">
<table >
<tbody>you have already use qq2001
</tbody>
</table>
</body>
";
exit;
}}
}
echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">
<body class=WebPager oncontextmenu=\"return false;\">
<table border=0 cellPadding=1 cellSpacing=1 height=320 width=140>
<tbody>password or name erro</tbody>
</table>
</body>
";
}
?>