• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux HTML::FormFu Download

HTML::FormFu

July 2, 2009
This software is a framework that allows for the creation, rendering, and validation of HTML forms. It helps streamline the process of building forms and ensures that they are error-free and responsive.
Version 0.05000
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by Carl Franks
HTML::FormFu is a software framework designed to make HTML form creation, rendering, and validation in Perl easy and flexible. It is currently in beta, and there may be API changes required before the 1.0 release. Any incompatible changes will be announced on the mailing list, which users are encouraged to join. The documentation is a work in progress, and feedback is welcome via the mailing list for any errors or confusing sections.

To use HTML::FormFu, one can load the module and create a new form object. This example makes use of the HTML::FormFu::Model::DBIC module, which is now available in a stand-alone distribution:

use HTML::FormFu;
my $form = HTML::FormFu->new;
$form->load_config_file('form.yml');
$form->process($cgi_query);

If the form is submitted and valid, the form data can be processed as desired. Otherwise, the form can be displayed again for the user to fill out.

For those using HTML::FormFu with Catalyst, the code looks a bit different:

package MyApp::Controller::User;
use strict;
use base 'Catalyst::Controller::HTML::FormFu';

sub user : Chained CaptureArgs(1) {
my ( $self, $c, $id ) = @_;
my $rs = $c->model('Schema')->resultset('User');
$c->stash->{user} = $rs->find( $id );
return;
}

sub edit : Chained('user') Args(0) FormConfig {
my ( $self, $c ) = @_;
my $form = $c->stash->{form};
my $user = $c->stash->{user};
if ( $form->submitted_and_valid ) {
$form->model->update( $user );
$c->res->redirect( $c->uri_for( "/user/$id" ) );
return;
}
$form->model->default_values( $user )
if ! $form->submitted;
}

Note that because "process" is automatically called by the Catalyst controller, any modifications made to the form within the action method must be followed by a call to "process" before performing other actions.

HTML::FormFu can be configured using a YAML or other Config::Any file. The following example creates a basic login form with required fields:

---
action: /login
indicator: submit
auto_fieldset: 1

elements:
- type: Text
name: user
constraints:
- Required

- type: Password
name: pass
constraints:
- Required

- type: Submit
name: submit
constraints:
- SingleValue

Overall, HTML::FormFu is designed to be easy to use for basic web forms while offering flexibility for more complicated tasks. The default output is XHTML 1.0 Strict-compliant markup with minimal extra markup, allowing for custom styling via CSS class names. All methods for using HTML::FormFu (except "new") can be called as a method or configuration option, following the convention that square-bracketed arguments are optional.
What's New

Version 0.05000: N/A

Free Download 256K
320
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    92
  4. SlideMap 1.2.2
    82
  5. CherryTV 0.1
    81
  6. porm r2
    79
  7. Swiftfox 3.0b5pre-2
    77
  8. Java Games 1.0
    76
  9. Clewarecontrol 0.8
    75
  10. fuseftp 0.8
    74

Related Downloads

Mini Tanques
"Mini Tanques" is a 2D action game where players control tanks. Engage ...
DKP Log Parser
DKP Log Parser (DKPLP) is a tool for administering time-based and/or event-based ...
MoB
MoB is a platform for creating and deploying video and multimedia installations, ...
MOMHVis
MOMHVis uses OpenGL to graphically present non-dominant solutions of MOMH issues in ...
GlassWorks
GlassWorks is a robust and free installation builder software, designed to streamline ...
rsyslog
Rsyslog is an advanced version of syslogd.
RecentFiles
RecentFiles script grants hassle-free access to recently accessed files.
Z88transfer
This software tool enables file transfer between a Z88 computer and a ...
Mowyw
Mowyw is an offline CMS software which utilizes special syntax elements to ...
Bio::MAGE::Description
The MAGE package includes a container module for organizing and managing classes. ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.