"Stuart 'Zen' Bishop" wrote My question is this : is there a more way to submit the form and reload the page without making a second method (in my case added_announcement_html) to make the calls to the SQL and Redirect statements ? My folders are rapidly filling up with these sorts of methods and I would prefer to cut down on redundant methods if I can.
It can all be done with one document.
<dtml-var standard_html_header>
<dtml-if mysubmitbutton> Code to insert stuff into the database </dtml-if>
<form method="post"> My form. Note the default action in HTML is the current document <input type=submit name=mysubmitbutton value=" Add "> </form>
Note that this style of page can very very quickly become a maintenance horror, as you add more and more conditionals and the like to them... Anthony