Never mind, it might have been my fault. I think it's functioning now, I think I left over an extra <%endif%> at the very bottom of the include.form.html when I was trying it my way earlier today.
Disregard below for the moment until I do further testing.
Interesting, maybe I don't quite understand how it functions.
I put this at the top of my existing include_form.html file:
<%set CatID = $ID%>
<%endif%>
<%if CatID == 49%>
Members new Ad form coming soon.
<input type="hidden" name="CatID" value="<%CatID%>" />
<%else%>
show another form
AND ALL THE CONTENTS OF MY ORIGINAL include_form.html
<%endif%>
And what I end up getting is that when I just go to add.cgti, I see
show another form
AND THEN ALL THE CONTENTS OF THE ORIGINAL FORM LIKE I SHOULD.
However when I go to add.cgi?ID=49
I see
Members new Ad form coming soon. (like I should)
But then it continues to show me the rest of the original include.form.html file.
It's as if it doesn't stop at the <%else%> code, it shows both instead.
I hope that made sence.
Disregard below for the moment until I do further testing.
Interesting, maybe I don't quite understand how it functions.
I put this at the top of my existing include_form.html file:
Code:
<%if not CatID%> <%set CatID = $ID%>
<%endif%>
<%if CatID == 49%>
Members new Ad form coming soon.
<input type="hidden" name="CatID" value="<%CatID%>" />
<%else%>
show another form
AND ALL THE CONTENTS OF MY ORIGINAL include_form.html
<%endif%>
And what I end up getting is that when I just go to add.cgti, I see
show another form
AND THEN ALL THE CONTENTS OF THE ORIGINAL FORM LIKE I SHOULD.
However when I go to add.cgi?ID=49
I see
Members new Ad form coming soon. (like I should)
But then it continues to show me the rest of the original include.form.html file.
It's as if it doesn't stop at the <%else%> code, it shows both instead.
I hope that made sence.