Hi y'all !
I'm an absolute ASP newbie and need some help.
I want to be able to change a hidden form element value on an ASP page.
The following generates this error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/test.asp, line 13
Maybe 'document' is wrong but it would work in VBScript on client side.
Thanks in advance for any help.
----------------------------------------------
<html>
<head>
<title>Test Page 1</title>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
<input type="hidden" name="test" value="xxx">
</form>
</body>
<%
document.GetElementById( "test" ).value = "hello"
%>
</html>
I'm an absolute ASP newbie and need some help.
I want to be able to change a hidden form element value on an ASP page.
The following generates this error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/test.asp, line 13
Maybe 'document' is wrong but it would work in VBScript on client side.
Thanks in advance for any help.
----------------------------------------------
<html>
<head>
<title>Test Page 1</title>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
<input type="hidden" name="test" value="xxx">
</form>
</body>
<%
document.GetElementById( "test" ).value = "hello"
%>
</html>