In HTML, how can user enter username/password and access it ?
appu
2008-10-06 12:04:16 UTC
I want a little bit of code in HTML to do this........i am new and eager to know....please help......any web programmer?.......thnx
Six answers:
Rodolfo R
2008-10-06 12:09:50 UTC
You need PHP or ASP to store the information in a database. HTML only works for displaying stuff on the browser, not for data manipulation/storage
Guerrilla Gorilla
2008-10-06 12:12:26 UTC
The HTML side is easy, just use (in xhtml 1.1):
You're going to need a scripting backend to authenticate the user though. A good language for that would be php.
Joe
2008-10-06 12:08:48 UTC
Can't do that with just HTML. It's just a Markup Language.
If you want to move to username/password learn PHP.
Badsha
2008-10-06 21:22:19 UTC
U have to use form and text boxes and a button called submit.
Code for text boxes where the user will enter data:-
Code for submit button which the user will click on to send the input data:-
method="get">
Username:
?
2016-12-02 01:30:54 UTC
colinc meant HASHED, no longer ENCRYPTED for passwords. you do no longer want to keep ENCRYPTED passwords on account that means somebody ought to DECRYPT them, which might have secure practices implications. yet, yeah, till you're writing some distant database admin gadget like PHPMyAdmin, you do no longer do this. (And PHPMyAdmin is a great secure practices problem itself. do no longer pass writing yet another one ;-)
pnefc01
2008-10-06 12:11:07 UTC
To password protect you need to use the .htaccess and .htpasswd files. To do this see the below link:
http://www.javascriptkit.com/howto/htaccess.shtml
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.