Hello
I tried this way, but canīt get it working, maybe I should try in the form
The solution I found is to do something like that,
(in footer.html)
<%if add_p%>
<a href="db.cgi?do=add_form&db=<%db%>&tipo=Casa">Casa</a> |
<%endif%>
And in the add_form.html
<%if tipo eq Casa%>
<%include add_form_casa.html%>
<%endif%>
<%if tipo eq Apartamento%>
<%include add_form_apartamento.html%>
<%endif%>
I tried this way in the footer.html
<%if add_p%>
<a href="db.cgi?do=add_form&db=<%db%>&t=add_form_apartamento.html">Apartamento</a> |
<%endif%>
(what I think will be far easier because doesnīt have to do several <%if tipo eq %> to include the specific form fields) but didnīt work, i get a
Invalid Template add_form_apartamento.html
where did you put the "t=template_set" ?
I tried this way, but canīt get it working, maybe I should try in the form
The solution I found is to do something like that,
(in footer.html)
<%if add_p%>
<a href="db.cgi?do=add_form&db=<%db%>&tipo=Casa">Casa</a> |
<%endif%>
And in the add_form.html
<%if tipo eq Casa%>
<%include add_form_casa.html%>
<%endif%>
<%if tipo eq Apartamento%>
<%include add_form_apartamento.html%>
<%endif%>
I tried this way in the footer.html
<%if add_p%>
<a href="db.cgi?do=add_form&db=<%db%>&t=add_form_apartamento.html">Apartamento</a> |
<%endif%>
(what I think will be far easier because doesnīt have to do several <%if tipo eq %> to include the specific form fields) but didnīt work, i get a
Invalid Template add_form_apartamento.html
where did you put the "t=template_set" ?