news/success&#39;</span><span class="p">);</span>
    <span class="p">}</span>
<span class="p">}</span>
</pre></div>
</div>
<p>The code above adds a lot of functionality. The first few lines load the
form helper and the form validation library. After that, rules for the
form validation are set. The <code class="docutils literal"><span class="pre">set_rules()</span></code> method takes three arguments;
the name of the input field, the name to be used in error messages, and
the rule. In this case the title an