This is my page below. I want the value entered for Binary to show up in the text file but when i hit the Save button, the only thing that shows up is this;
[object]
Does anybody know the correct syntax or have any idea what i'm doing wrong?
<HTML>
<HEAD>
<H1><CENTER>BUILD VALIDATION</CENTER></H1>
</HEAD>
<BODY>
<P>
<CENTER>Please provide the following information, then click Save: </CENTER>
<P>
<B>Binary: </B><INPUT NAME="strBinary" SIZE="12"> <B>Build No: </B><INPUT NAME="Build"
SIZE="10">
<P>
<B>Test A/C: </B><INPUT NAME="Test" SIZE="10"> <B>Date: </B><INPUT NAME="Date" SIZE="12">
<P>
<script language=vbscript>
Set fso = CreateObject("Scripting.FileSystemObject"
sub b1_onclick
set f1=fso.CreateTextFile("c:\new.txt",true)
f1.WriteLine strBinary
f1.close
end sub
</script>
<INPUT type="button" value="SAVE" id=b1 name=b1>
</BODY>
</HTML>
[object]
Does anybody know the correct syntax or have any idea what i'm doing wrong?
<HTML>
<HEAD>
<H1><CENTER>BUILD VALIDATION</CENTER></H1>
</HEAD>
<BODY>
<P>
<CENTER>Please provide the following information, then click Save: </CENTER>
<P>
<B>Binary: </B><INPUT NAME="strBinary" SIZE="12"> <B>Build No: </B><INPUT NAME="Build"
SIZE="10">
<P>
<B>Test A/C: </B><INPUT NAME="Test" SIZE="10"> <B>Date: </B><INPUT NAME="Date" SIZE="12">
<P>
<script language=vbscript>
Set fso = CreateObject("Scripting.FileSystemObject"
sub b1_onclick
set f1=fso.CreateTextFile("c:\new.txt",true)
f1.WriteLine strBinary
f1.close
end sub
</script>
<INPUT type="button" value="SAVE" id=b1 name=b1>
</BODY>
</HTML>