I'm just getting into asp and I have a small problem. I tried to search but I wasn't sure what to search for so sorry if this has already been answered.
I have a REALLY basic form. When the form is submitted it calles the same asp page. The beginning of the page uses:
<% If Request.ServerVariables("CONTENT_LENGTH") <> 0 ThenIn order to check if the form has been submitted or not. If it has the page sends an email with the form's details.
Trouble is if someone presses 'refresh' then the form sends another email. I was wondering if there was any way to wipe the "CONTENT_LENGTH" after the email sending, so if they refresh the page it would just be like they had just accessed the page for the first time.
I need to get this sorted because I want to put in some form validation. I want to submit the form, check validation, and if that is ok then send the email. If not, an email shouldn't be sent.
Can anyone help me?