<?xml version="1.0" encoding="windows-1252"?>
<node id="782055" title="Re: CGI Question" created="2009-07-21 15:08:04" updated="2009-07-21 15:08:04">
<type id="11">
note</type>
<author id="590906">
linuxer</author>
<data>
<field name="doctext">
&lt;p&gt;You should consider to use start_form() and end_form() from [doc://CGI] to start and finish your HTML form.&lt;/p&gt;

&lt;p&gt;You can save many [doc://print]s if you print a list of &lt;c&gt;$cgi-&gt;...&lt;/c&gt; elements.

&lt;c&gt;
print $cgi-&gt;header(),
  $cgi-&gt;start_html('title'),
  $cgi-&gt;start_form(),
  #... your form here
  $cgi-&gt;end_form(),
  $cgi-&gt;end_html(),
;
&lt;/c&gt;

&lt;p&gt;&lt;i&gt;Update:&lt;/i&gt; Maybe you should have a look at a templating system like [cpan://HTML::Template] as well. Using a templating system helps you to separate your HTML content from your perl code.&lt;/p&gt;</field>
<field name="root_node">
781691</field>
<field name="parent_node">
781691</field>
</data>
</node>
