Trying to write data to cookie so that I can pass parameter to next page. Errors at setVariable. strParm_1 is a text field and pID is numeric. I've included the sub that is called from setVariable. Any help would be greatly appriciated, thanks in advance.
<SCRIPT language=vbscript event=Current(info) for=MSODSC>
Dim pID
Dim URL
Const strParm_1 = "KEYID"
URL = "Parameters_Results.htm"
pID = key_id.value
setVariable strParm_1, pID
window.navigate(URL)
</SCRIPT>
<SCRIPT language=VBScript>
OPTION EXPLICIT
Dim NOT_FOUND
NOT_FOUND = "NOT_FOUND"
Sub SetVariable(strVariableName, varVariableValue)
Document.Cookie = strVariableName & "=" & varVariableValue
End Sub
Sub KillVariable(strVariableName)
SetVariable strVariableName, "NULL;expires=Monday, _
01-Jan-95 12:00:00 GMT"
End Sub
</script>
<SCRIPT language=vbscript event=Current(info) for=MSODSC>
Dim pID
Dim URL
Const strParm_1 = "KEYID"
URL = "Parameters_Results.htm"
pID = key_id.value
setVariable strParm_1, pID
window.navigate(URL)
</SCRIPT>
<SCRIPT language=VBScript>
OPTION EXPLICIT
Dim NOT_FOUND
NOT_FOUND = "NOT_FOUND"
Sub SetVariable(strVariableName, varVariableValue)
Document.Cookie = strVariableName & "=" & varVariableValue
End Sub
Sub KillVariable(strVariableName)
SetVariable strVariableName, "NULL;expires=Monday, _
01-Jan-95 12:00:00 GMT"
End Sub
</script>