View Full Version : how to write coding in javascript

06-28-2004, 12:39 AM
hi guys...i really need your help....i need to know how to write javascript coding to protect the page...what i mean here is..my task is to do a username and ppassword for the system...but i don't know what is the coding...other than that, the username and the password can be change for all user. what i mean here is, various people will use this system...and each of them must have password n username to login to view the database...please...i really need your help...tq~

06-28-2004, 07:29 AM
Are you sure you know what language you are working in? To my knowledge, JavaScript does not hold permanent data, hence, it is not a data base system. Secondly, unless someone is absolutely clueless about how to access the code, your password thingy doesnt make a whole lot of sense. You could try a cookie thing, and you could try encoding certain things, over, and beyond that, i dont think JavaScript is what you are looking for.

Perhaps if you could paste the code, or tell others what you have in mind, you will get a better response.

06-28-2004, 04:38 PM
Do you mean a login system to access restricted parts of your website?

06-28-2004, 04:49 PM
you'll just have to learn any of the following: JSP, ASP, PHP, Perl, ColdFusion, or htaccess. furthermore, your host server must be setup to use it. geocities, etc don't.