I am trying to update a data extension using an email recipient's email address as the unique identifier - when the email recipient presses a button in the email, I want to go to a landing page that processes the DE update and redirects to a new site. I have the following code, but not sure what I'm doing wrong. The email address is being passed through the URL to the processing landing page.
I've searched through all of the resources / answers I can find and still stuck.
<script runat="server" language="ampscript">
Var @Email, @Double_Opt_In
SET@Email=QUERYPARAMETER('EMAIL')
UpdateDE('EMEA_Comms_Request_Form',1,'EmailAddress',@Email,'Double_Opt_In',YES)
</script>
<meta http-equiv="refresh" content="0; url=https://someurl.com">