I think I am going mad here, so if someone can help me out:
Im new to .ASP and I am adding an IF statement to the submit button to Insert a new record if it is clicked. I have tried this both submitting to the same page and to another page, and I have tried Get & Post
so I have the button:
<input type="submit" value="Add" name="view">
then the IFwhich is:
<%
if request.form("view") = "Add" then
(running insert code, which I have checked works)
end if
%>
I have played with it, and basically proven that Submit button is not returning the value of the button.
So i havent a clue whats happening.
Other info:
IF statement is within the form, after the Submit button, but I have tried it all over the place. - SHOULD IT GO SOMEWHERE INPARTICULAR?
Im new to .ASP and I am adding an IF statement to the submit button to Insert a new record if it is clicked. I have tried this both submitting to the same page and to another page, and I have tried Get & Post
so I have the button:
<input type="submit" value="Add" name="view">
then the IFwhich is:
<%
if request.form("view") = "Add" then
(running insert code, which I have checked works)
end if
%>
I have played with it, and basically proven that Submit button is not returning the value of the button.
So i havent a clue whats happening.
Other info:
IF statement is within the form, after the Submit button, but I have tried it all over the place. - SHOULD IT GO SOMEWHERE INPARTICULAR?