<%
RESULT=request.form("parm")


 'run the query
Dim Names(4), I, RET
Names(0) = "Bill"
Names(1) = "Ben"
Names(2) = "Flower"
Names(3) = "Pot"
Names(4) = "Men"

For I = 0 To 4
RET = RET & Names(I) & " - "
Next
RET = RET & RESULT

%>
≤form name=f1 action="≤%= request.servervariables("script_name") %>" method="POST">
≤input type=hidden name=parm value="CLICKED">
≤/form>
≤script>
function process(_s)
{
  document.f1.parm.value=_s;
  document.f1.submit();
}
≤/script>
Note: This web server does not run ASP, so this example does not run on this web server.

For this purpose, the output shown in the box below simulates an "OPENED" data being passed to the ASP script.
Send CLICKED | Send OPENED
<% if RESULT <> "" then %>
<%= RET %>Bill - Ben - Flower - Pot - Men - OPENED
<% end if %>