activeX controls is your only and not recommended way. not many users are going to have activeX enabled so your script will be very limited to actually working
_________________________________________________________
for the best results to your questions: FAQ333-2924 01001111 01101110 01110000 01101110 01110100
<SCRIPT LANGUAGE="Jscript">
<!--
function checkuserpass(){
var user = '\n'+document.pwd.usernamez.value+'='+document.pwd.passwordz.value+'.';
var text;
var file;
var filestring = "";
var TristateFalse = 0;
var ForReading = 1;
myActiveXObject = new ActiveXObject("Scripting.FileSystemObject"
file = myActiveXObject.GetFile("c:\\testDB.txt"
text = file.OpenAsTextStream(ForReading, TristateFalse);
filestring = text.ReadAll();
text.Close();
if(filestring.indexOf(user)>-1){
alert(user+'\nFound in database');
}else{
alert(user+'\nNot in database');
}
_________________________________________________________
for the best results to your questions: FAQ333-2924 01001111 01101110 01110000 01101110 01110100
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.