in reply to Keeping Form Values
Also in display_form(), you might want to consider using HTML::Template and doingif(defined $q->param('form_submitted')){ if(&errors){ #Error occured &display_form($q); }else{ &thank_you; } }else{ &display_form; } sub display_form(){ ##Do form stuff }
which will put all the submitted values into the template as long as the associated <TMPL_VAR NAME=".."> tags are there.$temp = HTML::Template->new( file => 'file.tmpl', associate => $q );
- Tom
|
|---|