Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving input text to a txt file using asp???

Status
Not open for further replies.

Glimmer23

Technical User
Feb 3, 2003
21
A1
hi, does anyone know the asp scripts, and the actions for saving text which has been inputted into a field, to a .txt on a server using asp?
 
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 = &quot;Here is some stuff to write in the file.&quot;
//this line creates an instance of the File Scripting Object named myFSO
Set myFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set WriteStuff = myFSO.OpenTextFile(&quot; 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
%>

hope this helps but im more used to php
 
i am actually looking at php now... or php wtih a data base
because everyone i seem to talk to thinks its better
 
if you have the choice use php

10 times better and easier....and with mySql for a database...unbeatable
 
ok think ill try use it then:)
hey btw if u come online i will be on yahoo messenger, most of today
 
but i think for the mokment its gonna have to be ms access, cause i dont have mysql on this computer
 
ok so i have cheaked with the server guys, php carnt be used, but asp sould be fine
so iam back to learning script:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top