I am getting a syntax error on an ASP (using vbscript) page, the error is thrown on the last ELSEIF line (delete). This statement is spread out throughout the page code, but I copy/pasted it all together in one spot. The code was existing when I took this job, but I believe it is setting a flag depending on whether the "update" link is clicked or the "delete" link. It will determine whether an update query is run or a delete query. Does anyone see an error in the syntax? If not, can anyone offer another way to write the statement (maybe a case select)?
coachdan32
Code:
Actionvar=Request.QueryString("actionvar")
IF Actionvar="update" THEN
IF Len(TRIM(Request.Form("flag"))) = 0 THEN
ELSEIF Request.Form("flag")="2" THEN
ELSEIF Actionvar="delete" THEN
END IF
END IF
coachdan32