Thanks for the advice I understand exacly what you are suggesting.
My problem is comes earlier in getting a variable out from the
vbscript and into a textbox so that I can then "Post" it to a php script.
Below is a sample of code I have tried - none of the Rem lines work!! This is where I am "stuck"!
At this stage I have not used a hidden form as it is easier to
debug when it is shown.
If I can get the variable "myvar" out of the vbscript then I know how to do the rest OK.
Thanks
Dave
<html>
<head>
</head>
<body>
<form method="POST" action="xxx.php">
<p>
<input type="text" name="Text1" size="20" >
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2"></p>
</form>
<p>
<script language=vbscript>
option explicit
dim myvar
myvar=5
rem set document.forms("Text1").value = myvar
rem document.forms.Text1.value= myvar
rem document.forms.Text1.write myvar
rem set document.Text1.value=myvar
rem document("Text1").value = myvar
rem document.forms("Text1").write myvar
rem set Text1.value = myvar
</script>
</body>
</html>