Re-posting to the mailing list as well. --- On Thu, 26/5/11, Peter Shangov <pshan...@yahoo.com> wrote:
> From: Peter Shangov <pshan...@yahoo.com> > Subject: Re: [html-formfu] New user with simple question > To: "George Hrysanthopoulos" <x...@darksmile.net> > Date: Thursday, 26 May, 2011, 11:51 > Hi George, > > The examples of the topics that you discussed should be in > the following two chapters of the manual: > > http://search.cpan.org/perldoc?HTML::FormFu::Manual::Stages > http://search.cpan.org/perldoc?HTML::FormFu::Manual::ConfigurationFiles > > Can you point at specific topics or examples that you think > are missing or are not clear enough, so that I can have an > idea what else to include there? The manual is particularly > geared towards people who are new to FormFu, so I's love to > get some feedback. > > Cheers, > > -- > Peter > > --- On Wed, 25/5/11, George Hrysanthopoulos <x...@darksmile.net> > wrote: > > > From: George Hrysanthopoulos <x...@darksmile.net> > > Subject: Re: [html-formfu] New user with simple > question > > To: "HTML Form Creation, Rendering and Validation > Framework" <html-formfu@lists.scsys.co.uk> > > Cc: "Peter Shangov" <pshan...@yahoo.com> > > Date: Wednesday, 25 May, 2011, 22:43 > > Peter, > > > > Carl's one hint at the issue, was more enlightening > that > > the entire CPAN site put together. I am not even > > slightly kidding. > > > > Why hasn't anyone posted a simple scenario (such as > mine) > > to CPAN, as a starting point to HTML::FormFu > programming? > > > > I am talking about a complete set of files not code > > snippets. > > > > Like I said, I will post all 4 of my files (with > > explanations) on my site: > > www.xm5design.com. > > > > Hopefully, a new user won't spend a few days (just > like I > > did) > > decoding the (not very) helpful manual. > > > > At least not to beginners and I consider myself an > advanced > > perl user. > > > > Sorry if I am stepping on anyone's toes here but it > seems > > to me > > that a tool, such as HTML::FormFu, should have a > myriad of > > examples. There is so much power there. > > > > George > > > > On 5/25/11 5:19 AM, Peter Shangov wrote: > > > Hi George, > > > > > > You can also have a look at HTML::FormFu::Manual > on > > CPAN. > > > > > > Cheers, > > > > > > -- > > > Peter > > > > > > --- On Wed, 25/5/11, George Hrysanthopoulos<x...@darksmile.net> > > wrote: > > > > > >> From: George Hrysanthopoulos<x...@darksmile.net> > > >> Subject: Re: [html-formfu] New user with > simple > > question > > >> To: "HTML Form Creation, Rendering and > Validation > > Framework"<html-formfu@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@lists.scsys.co.uk > > >>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu > > >>> > > >> > > >> > _______________________________________________ > > >> HTML-FormFu mailing list > > >> HTML-FormFu@lists.scsys.co.uk > > >> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu > > >> > > > _______________________________________________ > > > HTML-FormFu mailing list > > > HTML-FormFu@lists.scsys.co.uk > > > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu > > > > > > > > _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu