View Single Post
Old 10-23-2012, 02:45 PM   PM User | #6
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,376
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Now that you have added md5 encoding make sure your DB reflects this.
I see you are trying to go to another page with $(document.location = "members.php");
I didn't enclose that, but I did fix the jq ajax:
Use this
Code:
<script type="text/javascript">
$(document).ready(function() {
	$("#login").click(function(){
		var username=$("#username").val();
		var password=$("#password").val();
	    $.post("loginpost.php",
	    {
	      username:username,
	      password:password
	    },
	    function(data,status){
	      $('.errors').html(data);
	    });
	});
});
</script>
sunfighter is offline   Reply With Quote
Users who have thanked sunfighter for this post:
prash91 (11-16-2012)