I know it were talked lots about that, but I have tried lot of these options and with no success, please let me know what I have done wrong here:
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<title>IP</title>
<%
function su192168165()
Dim fso192168165, f, filespec, wrln
set wrln = Document.getElementById(192168165).Value
Set fso192168165 = CreateObject("Scripting.FileSystemObject")
filespec = Server.Mappath("/comment/192168165Comments.txt")
Set f = fso192168165.OpenTextFile(filespec,2)
f.WriteLine wrln
f.Close
End function
%>
</head>
<body>
<input type="text" id="192168165" name="Comment" value=""/><input type="button" value="Comment" onclick="su192168165()"/>
</body>
</html>
This is my HTML code that contain place to write comment and after clicking on button it is need to write the comment to file, but it is not functioning.
I have also tried to replace the functions with sub, same problem. Code 0 on line 8. "set wrln = Document.getElementById(192168165).Value"
Please help and let me know what I have wrote here wrong. Thanks Tal