JavaScript is NOT useful for sensitive data.
Why is this? JavaScript is client-side. This means that anybody visiting the page can easily view the source code of that website and look at your private coding. Think of that! What if you want to create a private website? A private blog? And say you wanted only certain people to know the username and password to get into the site... well PHP solves this.
PHP is not only server-side, but cannot be viewed in the source code of the website unless you edit the file. PHP has the right functions for it like JavaScript does. So don't use JavaScript for sensitive data.
Just a tip. And a useful one.
No comments:
Post a Comment
Please keep your comments appropriate.