2 回答

TA贡献1805条经验 获得超9个赞
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <?php $m = $_GET[mail]; $i = $_GET[id]; $o = $_SESSION[$m]; $n = $_POST[name]; $p = $_POST[pas]; if($o = $i) { if($n !== "" or $p !== "") { $where = "./admin/" . $m . "/" . $p . "/r.txt"; $fso = fopen($where,"w"); if($fso) { echo"你已注册过此邮箱"; exit; } else { fwrite($where, $n); echo"注册成功"; exit; } } else { echo"<form action=\"zhuce2.php\"method=\"post\">用户名<input type=\"text\" name=\"name\" />密码 <input type=\"text\" name=\"pas\" /> <input type=\"submit\" /> </form>"; } } ?> |
- 2 回答
- 0 关注
- 1041 浏览
添加回答
举报