FAQ
Personally, for a simple example, I'd combine the 2 .cgi files into 1.
your simple.cgi is already doing `if ( $form->submitted ) {} else {}`
so the form may as well post to simple.cgi, and you can just get rid
of the 2nd .cgi
Next, ?the initial CGI file: simple.cgi
======================
?28 $form->indicator("textvar");
?29 $form->process( $cgi_query );
As it is, lines 28 is redundant, and line 29 doesn't need the
$cgi_query parameter passed, as that .cgi is only being used to
display the form.
And last, the processing CGI file: simple_get.cgi
======================
?19 $query = new CGI;
?25 #$form->action("/cgi-bin/simple_get.cgi");
?26 #$form->method("post");
?27 $form->indicator("submit");
?28 $form->process();
Line 28 needs to be
$form->process( $query );
This will solve the initial problem.

Carl

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 14 | next ›
Discussion Overview
grouphtml-formfu @
categoriesperl, catalyst
postedMay 25, '11 at 6:38a
activeMay 30, '11 at 12:21a
posts14
users3
websitemetacpan.org...

People

Translate

site design / logo © 2022 Grokbase