What's the difference between the input type "text" and "password" in an html form? -


This question may sound stupid, but here's the situation: I request a JPER post for my mail, but it does not work It is working, it works with all the pages except Webmail, so trying to figure out what was wrong, I created the login form, here's the code:

  & Lt; Form id = "form1" name = "form1" method = "post" action = "https://login.hostmonster.com/"> & Lt; Label & gt; Users & lt; Input type = "text" name = "login" id = "user" /> & Lt; / Labels & gt; & Lt; Label & gt; Near & lt; Input name = "password" type = "password" id = "pass" /> & Lt; / Labels & gt; & Lt; Input name = "doLogin" type = "submit" id = "doLogin" value = "login" & gt; & Lt; / Form & gt;  

The strange thing is that when you change the input type for the text, the form does not work! I do not know why, even then, if you can tell me what is the real difference between input type text and password (and it is not that it says everywhere on the net that the only difference is that instead of the characters Stars), so I appreciate it. Also, do you think this is affecting my jquery post? Here's the code for:

  $ j.post ('https://login.hostmonster.com/', 'login:' xxx@example.com ', password:' xxx ' }, Function (data, text) {if (text == 'success') {warning ('success' + data);} and {warning ('failed');}});  

Thanks a lot! Regards,

D

One major problem is that I am looking here That response will be stored in variable data and will not be tested. Tests are loaded with teststats, which, if I am not mistaken, only tells you whether your request is passing or not. In other words, your script should be valid even with the wrong password.

Here are some things to ask yourself, and maybe tell us first, it is that only thing that you have changed? Does your form work without javascript? How do your script load the set and loaded values? When you say "this is not working", is not it? Using packet sniffer can help you see what is happening and what is coming back.

When it comes to data that you send, your browser does not follow "text" and "however, some browser standards. Besides, jQuery can do something different, but I Never heard of before.


Comments