$.ajax({
type: "POST",
data: {
login: login,
pwd: pwd,
somevar: somevarvalue
},
url: "/response.php",
............pwd
if(isset($_POST['login'])){$login = $_POST['login']}else{$login = null};
if(isset($_POST['pwd'])){$pasword= $_POST['pwd']}else{$pasword= null};