LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2011, 09:19 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
HTML Form and Passwords


Are passwords returned with the other elements of a form or are they returned independently? Asking the question in another way: should I expect a password to show in a returned string of form elements, even if as ********?

Thank you for your help.
 
Old 08-18-2011, 10:45 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

You are thinking of something like <input type="password" ...> right? Then the answer is that it behaves just like type="text" except that it will be shown like ****** instead of the letters in the browser. You can test it with something like this:
Code:
<form action="#" method="get">
<input type="password" name="password" value="secret" />
<input type="submit" />
</form>
When you look at it in the browser, you can't see the password, but when you submit it, you'll see it in the address bar.
 
1 members found this post helpful.
Old 08-22-2011, 09:45 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
Thank you very much.
 
Old 08-22-2011, 09:50 AM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
And don't think POST makes it any more secure than GET just because it isn't in the URL. You need something like HTTPS aka SSL (or perhaps a very decent client-side Javascript salt+hashing setup depending on your needs).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
html form question rblampain Programming 1 07-19-2007 02:09 AM
Html Form File Cottsay General 0 11-05-2005 01:30 PM
HTML and passwords MDBlueIce Programming 2 07-18-2005 10:11 AM
html question: form henrikanttonen Programming 4 08-13-2004 07:28 AM
problem with html form meluser Linux - Software 4 03-15-2003 12:28 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration