I am currently creating pages to a web site that I wish to be kept private. I have set up a username and password javascript code on this site to provide some restrictions but by viewing the source or the Javascipt, the passwords are given away.

Can anyone say how to make my lookup direct to a secure database rather than to an array[0].?