man.... i dont get asp!!
ok just to make sure i got the situation right...
i have a input text field... which user types in, then they click a save button (push button), which will activate an asp script, and save it to a text file on a server....
if this is possible, and u know the script well, can u do me this one script and ill wokr it out for the next 30odd i have to do ehehe
the input text field name is, aspecial1.text
and the .txt is special1.txt ... it ids in the same folder on the server as the .swf and the .html, and i am almosdt certain this server allows asp.
so if someone could help me out here, i would be most grateful
create an empty file first before using this. php will make a file for you but im not sure asp does
<%
Dim Stuff, myFSO, WriteStuff
// you will pass a variable from flash instead of this rubbish
Stuff = "Here is some stuff to write in the file."
//this line creates an instance of the File Scripting Object named myFSO
Set myFSO = CreateObject("Scripting.FileSystemObject"
Set WriteStuff = myFSO.OpenTextFile("
8, True)
//this line actually writes STUFF from above to the file
WriteStuff.WriteLine(Stuff)
//this line closes the file
WriteStuff.Close
//this line destroys the instance of the File Scripting Object named WriteStuff
SET WriteStuff = NOTHING
//this line destroys the instance of the File Scripting Object named myFSO
SET myFSO = NOTHING
%>
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.