Hi there,
There are a few ways to check whether the form has been submitted or not. The easiest way is to check the value of the submit button:
Code:
<form bla bla bla>
...
Other form controls
...
<input type="submit" name="btnSubmit" id="btnSubmit" value="Send Feedback" />
</form>
This button has a
name property, which you can check against in your ASP code:
Code:
<%
If Request.Form("btnSumbit") <> "" Then
' Form has been submitted
Else
' First time the page loads
End If
%>
In addition to this, you could add client side JavaScript that prevents the form from being submitted when not all required fields have been filled in correctly. This saves you an additional roundtrip and increases the responsiveness of your application.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.