WordPress AJAX Login Without a Plugin
Read this Article:
http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/
WordPress AJAX Login Without a Plugin
Read this Article:
http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/
php ajax login form using jquery
<html>
<head>
<link href="login_style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function do_login()
{
var email=$("#emailid").val();
var pass=$("#password").val();
if(email!="" && pass!="")
{
$("#loading_spinner").css({"display":"block"});
$.ajax
({
type:'post',
url:'do_login.php',
data:{
do_login:"do_login",
email:email,
password:pass
},
success:function(response) {
if(response=="success")
{
window.location.href="index.php";
}
else
{
$("#loading_spinner").css({"display":"none"});
alert("Wrong Details");
}
}
});
}
else
{
alert("Please Fill All The Details");
}
return false;
}
</script>
</head>
<body>
<div id="wrapper">
<div id="login_form">
<h1>LOGIN FORM</h1>
<p id="login_label">Email : [email protected] | Password : demo</p>
<form method="post" action="do_login.php" onsubmit="return do_login();">
<input type="text" name="emailid" id="emailid" placeholder="Enter Email">
<br>
<input type="password" name="password" id="password" placeholder="***********">
<br>
<input type="submit" name="login" value="DO LOGIN" id="login_button">
</form>
<p id="loading_spinner"><img src="images/loader.gif"></p>
</div>
</div>
</body>
</html>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us