Ive created a fancy box driven login.. Now i wonder if can I directly compare the login username and password to mysql using php tags.?
Here's the initial coding but it doesn't work..please correct me..
<script type="text/javascript">
$("#login_form").bind("submit", function() {
if ($("#login_name") != <?php $row_rec_mem_accnt['user_name']; ?> || $("#login_pass")!= <?php $row_rec_mem_accnt['password']; ?>) {
$("#login_error").show();
$.fancybox.resize();
return false;
}
$.fancybox.showActivity();
$.ajax({
type : "POST",
cache : false,
url : "members_accnt.php",
data : $(this).serializeArray(),
success : function(data) {
$.fancybox(data);
}
});
return false;
});
</script>
Thanks for helping!!