Skip to content

Instantly share code, notes, and snippets.

@browolf
Created November 3, 2011 14:36
Show Gist options
  • Save browolf/1336644 to your computer and use it in GitHub Desktop.
Save browolf/1336644 to your computer and use it in GitHub Desktop.
submit file for nanoween.asp
<%
name= Request.ServerVariables("auth_user")
n2=split(name,"\")
name=n2(1)
story = request.form("text")
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.openTextFile("d:\intranet\test\stories.txt",8,true)
f.write (name & ":--> " & story & chr(13) )
response.write ("Entered:<p>" & name & ":--> " & story)
f.close
set f=nothing
set fs=nothing
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment