|
-
Jan 28th, 2002, 11:19 PM
#1
Thread Starter
Member
making text file
i have one text box and submit button in the form. i wnat to ceonvert the text when posted into HTML. although i have made this but how will i save this HTML in the text file under my folder i ma not able to save the converted text into HTML in the file which i will be able to link to that file from the program itself
eg
it will create the html file and svae the contents and i will be ale to view the link on next page such as "name.htm" as soon as the file gets created and clicking the file will open a new window with the contents of that text box
pls hepl me if anybobe can hep .i will hae to shoe this work and if anybody will hepl mne thru coding then it wiill be fine as i have to show by today
-
Jan 29th, 2002, 04:54 AM
#2
Fanatic Member
Do you mean that you want to create a text file on the Server everytime someone submits a form?
If so you can use the FSO.
Whatever directory you use to store this files must allow reading & writing by the IUSR_MachineName account (Make sure you disable all other permissions for this account on this folder!)
VB Code:
Dim txtString, fso, txtFile
txtString= "Some Text String"
Set fso = server.CreateObject("Scripting.FileSystemObject")
Set txtFile = fso.CreateTextFile("c:\Temp\WebPages\page1.htm", True)
txtFile.Write (txtString)
txtFile.Close
-
Jan 29th, 2002, 06:09 AM
#3
Fanatic Member
there is a tutorial and info on manipulating Text files here: http://www.4guysfromrolla.com/ hope this helps
-
Jan 29th, 2002, 07:51 AM
#4
I'm thinking that if you ask the same question 3 or more times you'll get a better response.
Paul
-
Jan 29th, 2002, 09:03 AM
#5
Thread Starter
Member
your query
no actually i want to svae the contents of text box in the html file whenever i submit the form it will store the contents in the html file and that html file will get stored in the specified directory
-
Jan 29th, 2002, 01:27 PM
#6
Originally posted by PWNettle
I'm thinking that if you ask the same question 3 or more times you'll get a better response.
Paul
I second that, its a little bit annoying if someone posts the same question again and again.
Rajender, rather then asking some one to do your course work ask specific question, we all here would be glad to help.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|