Quote:
|
Originally Posted by Teddy
I think the problem is you don't know how that code works, and we can't help you if you can't describe what the code does.
ProTip: "It submits things" is not a valid answer.
|
Hi Teddy,
I have experienced this same problem once.
The first page contain -
A textfield and a button in form tag.
Region.asp
Quote:
<form name="form1" method="post" action="regionupdate.asp">
<input type="text" name="textfield" value="">
<input type="submit" name="Submit" value="Submit" onclick="<% SESSION("update_ok")=true%>">
</form>
|
And Regionupdate.asp
Quote:
I am not writing the whole code here just few lines...
conn.BeginTrans
conn.Execute "INSERT INTO REGION(r_code,r_name) VALUES ('" & strcode & "','" & trim(Request.Form("textfield")) & "')"
conn.CommitTrans
|
If a user after coming back to the first, presses the refresh button the previous data is sent to the server.
I dealt with this problem by using clientside validation javascript.
Quote:
window.document.location.replace("url")
writing it at the head tag of the first page.
|
I hope to hear more solutions to this problem.
