when i click login button it's not redirecting to another php page.it's showing error on page. my code is below.
<html>
<head>
function win()
{
var a=document.getElementById('myusername');
var b=document.getElementById('mypassword');
var temp=a.value;
var temp1=b.value;
window.opener.top.location.href="http://www.careerglitters.com/web_login1.php?vars=" + temp + "&varr=" +temp1;
self.close();
}
</head>
<body>
<form>
<input type="text" name="myusername" style="width: 10em;">
<input type="password" name="mypassword" style="width:10em;">
<input type="button" name="button" value="Login" onClick="win()">
</form>
</body>
</html>