% dim pic,action,rndNumber pic = request.queryString("path") imageName = pic action = request("action") select case action case "send" 'Textfile wird erstellt und Link als Email versandt '-------------------------------------------------- Const fsoForWriting = 2 Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") 'Erstellen eines Postkarten-Textfiles '-------------------------------------------------- Dim objTextStream randomize rndNumber = rnd*1000000000000 rndNumber = int(rndNumber) dim path path = server.MapPath("../postcards/"&rndNumber&".html") Set objTextStream = objFSO.OpenTextFile(path, fsoForWriting, True) 'Inhalt des zu schreibenden Postkarten-Textfiles '-------------------------------------------------- objTextStream.WriteLine "" objTextStream.WriteLine "
" objTextStream.WriteLine "" objTextStream.WriteLine " | " objTextStream.WriteLine " | "
objTextStream.WriteLine " " & request.form("toname") & " " objTextStream.WriteLine "" & request.form("mes") & " " objTextStream.WriteLine "" & request.form("fromname") & " " objTextStream.WriteLine "" objTextStream.WriteLine " " objTextStream.WriteLine " | "
objTextStream.WriteLine "
" objTextStream.WriteLine " | " objTextStream.WriteLine " | " objTextStream.WriteLine " |
" objTextStream.WriteLine " |