Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Web form generation and validation

by szabgab (Priest)
on Dec 27, 2010 at 17:38 UTC ( #879305=perlquestion: print w/replies, xml ) Need Help??
szabgab has asked for the wisdom of the Perl Monks concerning the following question:

I am thinking to create a web based survey and I thought the best way would be to describe the questions and the possible answers as a json or yaml file. Then generate the forms from there (possibly spreading several pages). From the same description file I could derive the rules for input validation and then I could use something like Data::FormValidator to validate the results.

In the end I'd like to plug this in a Dancer based application.

I wonder what modules are out there on CPAN that could help doing this?

Replies are listed 'Best First'.
Re: Web form generation and validation
by Your Mother (Bishop) on Dec 27, 2010 at 19:51 UTC

    HTML::FormHandler or HTML::FormFu. I believe both do validation so you won't need another piece for that. Dancer would be fine and has picked up a lot of components quickly. Catalyst has many more if you wanted to do something a bit bigger/deeper.

Re: Web form generation and validation
by Anonymous Monk on Dec 27, 2010 at 19:37 UTC
    I would use http://www.modsurvey.org/ KEYWORDS: survey, online survey, questionnaire, online questionnaire, webbased survey, statistics, mod_perl, mod_survey, apache, Joel Palmius

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://879305]
Approved by sweetblood
Front-paged by Arunbear
help
Chatterbox?
[Corion]: Text::CSV_XS for all your CSV file parsing needs. Other than that, what problems do you have with perlre, and capturing everything after the comma? Also, index and substr would also work.
[choroba]: my ($value) = $string =~ /.*,(.*)/
[choroba]: The .* at the beginning matches the longest possible substring, so it eats any previous commas
[choroba]: But for CSV, use appropriate modules

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2018-05-27 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?