My apologies. I am a java/c++ programmer, and very new to web development.
Taking it one step at a time..
function WriteToFile()
{
var filename = "data.txt";
var fso = new ActiveXObject("Scripting.F
if (fso.FileExists(filename))
{
var a, ForAppending, file;
ForAppending = 8;
file = fso.OpenTextFile(filename,
file.WriteLine(name);
file.WriteLine(password);
}
else
{
var file = fso.CreateTextFile(filenam
file.WriteLine(password);
file.WriteLine(password);
}
file.Close();
}
This writes data to a file. And i am assuming (correct me if i m wrong), that the lines, file.WriteLine(password) write the data to a text file, correct? thus, i should replace 'password' with watever my textBox name is?
So lets say that I have a bunch of text boxes (ex. name, add, phone# etc), So i basically want the user to click on 'submit' and the entered information should be passed on to the file. so, how do these two elements connect? do i to something like this?
<intput type = 'button' value = 'submit' onClick = writeToFile()>?
And also, i read this on the site that you had directed me to: "The windows scripting host has first to be installed on the client.".
Mine is a web INDEPENDENT system, and i cannot rely on the use of the internet. so, is that presumable that this will be available on most comps? (pc-based only).
Thank you for ur help.
much appreciated.
Main Topics
Browse All Topics





by: gamer_2055Posted on 2003-08-14 at 12:54:59ID: 9149574
I think this link should help you.
cript/1421 .htm
http://developer.irt.org/s