View Single Post
  #1 (permalink)  
Old 05-06-2008, 01:51 AM
chetan1 chetan1 is offline
D-Web Trainee
 
Join Date: Apr 2008
Posts: 17
chetan1 is on a distinguished road
Default 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?
__________________
web design company
Reply With Quote
Sponsored Links