T
Terry
I'm trying to automatically submit a form to another ASP page after
some <input> fields values are filled by ASP.
I know I can do it using javascript, but is there a way to
automatically submit the form using VBscript?
Terry
<%
' ... some asp processing
value1 = "something"
value2 = "somethingelse"
%>
<form method="post" action="mynextpage.asp" id="form1" name="form1">
<input TYPE="hidden" name="var1" VALUE=" & <%=value1%> & ">"
<input TYPE="hidden" name="var2" VALUE=" & <%=value2%> & ">"
</form>
<%
' form1.submit() ' this obviously wouldn't do anything
%>
<script language="JavaScript" type="text/javascript">
// this works but is there a way to do it in vbscript.
form1.submit();
</script>
some <input> fields values are filled by ASP.
I know I can do it using javascript, but is there a way to
automatically submit the form using VBscript?
Terry
<%
' ... some asp processing
value1 = "something"
value2 = "somethingelse"
%>
<form method="post" action="mynextpage.asp" id="form1" name="form1">
<input TYPE="hidden" name="var1" VALUE=" & <%=value1%> & ">"
<input TYPE="hidden" name="var2" VALUE=" & <%=value2%> & ">"
</form>
<%
' form1.submit() ' this obviously wouldn't do anything
%>
<script language="JavaScript" type="text/javascript">
// this works but is there a way to do it in vbscript.
form1.submit();
</script>