hi,
i ve tried to auto login into an asp.net website. using javascript i can automatically log in to the www.irctc.co.in website but the same code have not worked for the website i ve tried. it have not even fill the username and password in the required filed. it just taken me to the login page of that website. the code i ve used is
<html>
<head>
<script type="text/javascript">
function autoLogin() {
document.webservices.submit();
}
</script>
</head>
<a href="javascript:autoLogin()">Log me automatically in</a>
<BODY>
<form name="webservices" method=post action="https://www.irctc.co.in/cgi-bin/bv60.dll/irctc/services/login.do" target="new_window" onSubmit="window.open('', 'new_window', 'width=450,height=300,status=yes,resizable=yes,scrollbars=yes)">
<input type=hidden id=UserName name="userName" value="xxxxxx"></input>
<input type=hidden id=Password name="password" value="yyyyyy"></input>
</form>
</body>
</html>
i dont know where i am wrong. ps correct me.