Twitist Forums
Html code that makes everyone use a password to login your website? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: Facebook profile (/forum-15.html)
+--- Thread: Html code that makes everyone use a password to login your website? (/thread-124451.html)



Html code that makes everyone use a password to login your website? - denzhe - 04-03-2014 02:10 PM

I'm in need of a html source code that is sort of like the one yahoo answers uses to let people Login your site. also need guidelines on how to make it that people can have their own individual profiles that they can edit much like this one on yahoo answers. I know I can't expect you to write it all. The basics would be much appreciated. thank you in advance.


- 468 - 04-03-2014 02:14 PM

You can't do it in HTML - you'd need a server-side scripting language like PHP, ASP, Perl, Rails, etc.


- Peter H - 04-03-2014 02:16 PM

HTML has provision for input forms, but not for processing passwords in secret. Anyone can see the full text of an HTML page and work out what is done with the inputs. If you want to use passwords to log in to a site you need to learn PHP/SQL and store passwords on a confidential database.


- Agent - 04-03-2014 02:29 PM

Unfortunately, you can't do this through HTML.

You can create a basic login system using Javascript (however they're not secure and shouldn't be used for a website open to the public). An example of this is here: http://www.javascriptkit.com/script/script2/loginpass2.shtml

You need to learn a language like PHP or ASP. Personally I recommend PHP, it's more widely used (Google, Facebook, Yahoo, Wikipedia and Wordpress all use PHP), compared to ASP, which seems to mainly be used by Microsoft owned companies (which makes sense, since Microsoft created ASP). The main important factor in this case is cost. PHP is free and open-source, whereas ASP is not. If you were certain you could make significant money with your website, you could go with ASP, but the benefits are not worth it in my opinion.

Javascript is also very useful for websites like the one you suggest.

Lastly, you'll need to know a database query language like MySQL or MSSQL. MySQL is the free, open-source one, and MSSQL is the commercial one that you have to pay for made by Microsoft.
MySQL is more widely used, just like PHP. This means that for both MySQL and PHP, there will be more support and examples online that you can learn from and get help.