Not Getting Login And Password Values In Div
I added isset to my check.php to get rid of an unidentified index error. The thing is, I’m not getting anything in div when I type something random in the login and password fiel
Solution 1:
You have a few issues in your code here
Firstly your .click wont work as youre not selecting entry correctly
Replace
$("entry").click(function(){
with
$("#entry").click(function(){
Secondly, in your php you are going to end up returning just "true" or "false" as that is what is returned from isset()
Replace your php with
<?phpif(isset($_POST['login']) && isset($_POST['password'])){
$login=$_POST['login'];
$password=$_POST['password'];
echo$login.$password;
}
?>
This will check if login and password is set before echoing
or if you want an easier but worse way
<?php$login=@$_POST['login'];
$password=@$_POST['password'];
echo$login.$password;
?>
This simply suppresses your errors, this is more frowned upon though
Post a Comment for "Not Getting Login And Password Values In Div"