I have a separate html file written for inputting the values from the textfile (this is just the start of it!) The file name i used is valid and contains the variable being passed in to the Binary text box. When i run this however the Binary textbox contains the actual word contents. I think it could be the script commands/html tags are maybe in the wrong place. Can anyone see what the problem might be?
<HTML>
<HEAD>
<H1>SIT_TEST_CIT: Build Validation</H1>
<SCRIPT LANGUAGE="VBSCRIPT">
sub d1_onclick
set readfile = filesys.OpenTextFile("F:\Corktest\Sit\Cit\tpota163 - pcplod - (22-05-01 ).txt", 1, false)
contents = readfile.Read(Buildform.TheBinary.Value)
readfile.close
end sub
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<FORM NAME=BuildForm>
<BR><BR>
<B>Binary:</B>
<INPUT TYPE = TEXT
Name=TheBinary Value=contents SIZE=15>