Hi forum,
Here's the problem:
I need to create a loop in an ASP which updates the 'action' of a form and automatically submits it each time the loop runs.
So far, I've got:
<% @language="vbscript"%>
<script language="javascript" >
function submit(){
document.frmquery.submit;
}
</script>
....
.......
....
Do while not CompanyName.eof
SUPPLIERNAME=trim(CompanyName(0))
If not product.eof Then
QTY=qty
ProdID=(trim(product(0)))
Else
%>
<TD></TD>
<%
set product = nothing
End if
%>
<form name="frmquery" method="GET" action="../<%=SUPPLIERNAME%>/OnlineCheck.asp?ProductID=<%=ProdID%>&Quantity=<%=QTY%>" OnBlur='javascript:submit();'>
</form>
<%
price=request.form("Price"
<TD><%=Response.write(price)%></TD>
Any help/suggestions would be very welcome
Vix
Here's the problem:
I need to create a loop in an ASP which updates the 'action' of a form and automatically submits it each time the loop runs.
So far, I've got:
<% @language="vbscript"%>
<script language="javascript" >
function submit(){
document.frmquery.submit;
}
</script>
....
.......
....
Do while not CompanyName.eof
SUPPLIERNAME=trim(CompanyName(0))
If not product.eof Then
QTY=qty
ProdID=(trim(product(0)))
Else
%>
<TD></TD>
<%
set product = nothing
End if
%>
<form name="frmquery" method="GET" action="../<%=SUPPLIERNAME%>/OnlineCheck.asp?ProductID=<%=ProdID%>&Quantity=<%=QTY%>" OnBlur='javascript:submit();'>
</form>
<%
price=request.form("Price"
<TD><%=Response.write(price)%></TD>
Any help/suggestions would be very welcome
Vix