"Gav" wrote:
I have a form which sibmits data to another page. Trouble
is when the user refreshes the page it resubmits all the
data again.
Is there anyway to expire the page immediatly so this cant
happen??
The process and redirect model is well suited for this. You can implement it
with or without post-back. Here are a couple of stripped down examples:
Process and redirect with post-back ---------------------------
[p1.asp]
<%
If Request.Form.Co unt AND (validation criteria) > 0 Then
{ process data, assign cookie or session info }
Response.Redire ct("p2.asp")
End If
%>
...
<FORM ACTION="p1.asp" >
[p2.asp]
<% { read cookie/session data, process page } %>
Process and redirect without post-back ------------------------
[p1.asp]
<FORM ACTION="p2.asp" >
[p2.asp]
<%
If (validation criteria) Then
{ process data, assign cookie or session info }
Response.Redire ct("p3.asp")
Else
Response.Redire ct("p1.asp")
End If
%>
[p3.asp]
<% { read cookie/session data, process page } %>
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.