i have form in html file , it's file body
<form action="" method="post">
<input id="name" type="text" name="username" placeholder="username" required></br></br>
<input id="password" type="password" name="password" placeholder="password" required></br></br>
<p id="warn"></p></br></br>
<input type="submit" value="Login" onclick="f()"></br>
</form>
<script>
function f() {
var name = document.getElementById("name").value ;
var password = document.getElementById("password").value ;
var xttp = new XMLHttpRequest();
xttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("warn").innerHTML = this.responseText ;
}
};
xttp.open("GET", "tst1.php?name="+name+"& password"+password, true);
xttp.send();
}
</script>
and i have php file callled tst1.php
<?php
echo $_REQUEST["name"]+"...."+$_REQUEST["password"]
?>
im trying to use ajax to show the entered value below them in p tag with id="warn" but it dose not show it