本文介绍了如何实现停用用户帐户的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 如何通过从login.php页面获取详细信息来编写用于停用用户帐户的代码。请有人帮帮我 login.php代码: - //登录表单的html代码。 .. if(isset($ _ POST ['Login'])) { $ name = $ _POST ['uname'] ; $ pwd = $ _POST ['pswd']; $ chkname =select * from.USREG。where email ='。$ name。'and password ='。$ pwd。'; $ res = mysql_query($ chkname,$ con)或die(mysql_error()); $ chkresult = mysql_fetch_array($ res); if($ chkresult ) { $ _SESSION ['uid'] = $ chkresult ['id']; $ _SESSION ['username'] = $ chkresult ['name']; $ _SESSION ['umailid'] = $ chkresult ['email']; echo'< META http-equiv =刷新content =0; URL ='。INDEX_URL.'booksIns.php>'; } else { echo无效登录; } } ?> 解决方案 _POST ['登录' ])) { name = _POST ['uname']; how to write a code for deactivating users account by fetching the details from login.php page. please anyone help me login.php code:- //html code for login form... if(isset($_POST['Login'])){ $name= $_POST['uname']; $pwd= $_POST['pswd']; $chkname="select * from ".USREG." where email='".$name."' and password='".$pwd."'";$res=mysql_query($chkname, $con) or die(mysql_error());$chkresult=mysql_fetch_array($res);if($chkresult) { $_SESSION['uid']=$chkresult['id'];$_SESSION['username']=$chkresult['name'];$_SESSION['umailid']=$chkresult['email'];echo '<META http-equiv="refresh" content="0;URL='.INDEX_URL.'booksIns.php">'; }else{echo "Invalid Login";} } ?> 解决方案 _POST['Login'])){ name=_POST['uname']; 这篇关于如何实现停用用户帐户的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-19 12:07