Hi everybody, this question might seem stupid, but here's the situation:
I'm trying to create an auto
login page for my mail using jquery's post request, but it's not working, it works with all other pages except with webmail. So, trying to figure out what was wrong, I recreated the
login form, here's the code:
<form id="form1" name="form1" method="post" action="https://login.hostmonster.com/">
<label>User
<input type="text" name="
login" id="user" />
</label>
<label>Pass
<input name="password" type="password" id="pass" />
</label>
<input name="doLogin" type="submit" id="doLogin" value="
Login">
</form>
The strange thing is when you change the input type of pass to text, the form doesn't work! I can't figure out why.
Anyway, if you can tell me what's the real difference between the input type text and password (and not what it says everywhere on the net that the only difference is that when you type stars appear instead of characters) I would appreciate it. Also, do you think this is affecting my jquery's post? Here's the code for it:
$j.post('https://login.hostmonster.com/', { login: '
[email protected]', password: 'xxx' }, function(data, text){
if (text=='success')
{
alert('Success '+data);
}
else
{
alert('Failed');
} });
Thanks a lot! Regards,
D