Hi, I have an asp page that has 2 submit buttons, it says "Approve" and "Disapprove". When either button is clicked it goes to a different page saying that the person either approved it or disapproved it and an email is sent to another person notifying their decision. But when the back button is clicked, it allows the person to click the buttons again and another email is sent. I want to make it to only allow the person to only submit once. Is there anyway I can check that the page has already submitted and that the second time you click on it, it will pop a message telling the person that it can only be clicked once. My co-worker told me to use a session variable, but I tried many times and it doesn t work. I don t want to bother her cause I asked her alot already on this...can someone help me?
this is what I kinda have:
Session("submitted"
= request("submit"
k = Session("submitted"
response.write(k)
if isEmpty (Session("submitted"
) then
msgbox "You have already submitted your decision."
end if
%>
<script language="JavaScript">
function check(){
if (document.form.op.value != Session("submitted"
){
alert("You have already submitted your decision."
;
return false;
}
return true;
}
</script>
this is what I kinda have:
Session("submitted"
k = Session("submitted"
response.write(k)
if isEmpty (Session("submitted"
msgbox "You have already submitted your decision."
end if
%>
<script language="JavaScript">
function check(){
if (document.form.op.value != Session("submitted"
alert("You have already submitted your decision."
return false;
}
return true;
}
</script>