problem in javascript <script language="Javascript">
function submitForm(action)
{
document.all.formlogin. innerHTML = document.all.formlogin.innerHTML +
"<input type=hidden name=statusx value=" + action + ">";
document.formlogin. submit();
}
</script>
<form name = "formlogin" action = "index.php" method = "POST">
UserName: <input type = "text" name = "UserName"></br></br>
PassWord: <input type = "password" name = "PassWord"></br></br>
<a class = "login" href="javascript: submitForm(\'temp\');"> Temporary Login</a></br>
<a class = "login" href="javascript: submitForm(\'perm\');"> Permanent Login</a>
</form>
I made such code, but once I click any of login links, my $_POST array has only statusx value, but not UserName and PassWord. What should I change? |