<%@LANGUAGE = VBSCRIPT %>
<%
'//Did the user submit the form?
IF Request.Form("Submit") = "Submit" Then
'//Yes, the submit button was clicked.
'//Submit will be equal to the button's value
'//If the button said "OK", then
'//Request.Form("Submit") would equal "OK"
'
'//Save info to the database.
'
Response.Redirect "ThisPage.asp"
'
'//Redirect to this page again.
'//This time submit will be ""
'//so this part will be skipped
Else '//Submit = ""
'//Draw the whole form here.
<FORM method=post action='ThisPage.asp'>
'
'//Build form here
'
</FORM>
End IF
%>