310henry777 Posted September 27, 2008 Share Posted September 27, 2008 I am trying to open the file news1.htm on my server (which the below code does) then i would like to make some changes to it and then have a user save it There is a submit button there, how would i tie in a save functionality to this Thank you <html><body><p> <TEXTAREA name="bytheway" style="width:700px; height:700px;"><%page_to_read="news1.htm"set fso = createobject("scripting.filesystemobject")set act = fso.opentextfile(server.mappath(page_to_read))read_text = act.readallact.closeresponse.write "<html>" & server.htmlencode(read_text) & "</html>"%></TEXTAREA><input type="submit" method="POST" value="Submit" textarea="bytheway"></body></html> Link to comment Share on other sites More sharing options...
amj Posted September 29, 2008 Share Posted September 29, 2008 Check to see if IUSR has the ability to write files. If not then you'll get error trying to save. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 29, 2008 Share Posted September 29, 2008 Once you open a file you can write to it.http://www.w3schools.com/asp/met_write.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.