[html-formfu] New user with simple question
Peter Shangov
pshangov at yahoo.com
Wed May 25 09:19:29 GMT 2011
Hi George,
You can also have a look at HTML::FormFu::Manual on CPAN.
Cheers,
--
Peter
--- On Wed, 25/5/11, George Hrysanthopoulos <xaos at darksmile.net> wrote:
> From: George Hrysanthopoulos <xaos at darksmile.net>
> Subject: Re: [html-formfu] New user with simple question
> To: "HTML Form Creation, Rendering and Validation Framework" <html-formfu at lists.scsys.co.uk>
> Date: Wednesday, 25 May, 2011, 11:47
> Carl,
>
> The reason I created 2 separate .cgi is to illustrate the
> possibility
> of doing just that.
>
> In real life, I might use a single .cgi (or not) depending
> on complexity.
>
> You have been a great help and I very much appreciate your
> time.
>
> George
>
> On 5/25/11 4:34 AM, Carl Franks wrote:
> > 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
> >
> > _______________________________________________
> > HTML-FormFu mailing list
> > HTML-FormFu at lists.scsys.co.uk
> > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
> >
>
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>
More information about the HTML-FormFu
mailing list