On Tue, 26 Jul 2005, Alex Aminoff wrote:

> I recently did a web interface to a database. I found myself writing some
> code that seemed general-purpose. I'm wondering if I reinvented the wheel.

I think you probably did but that's ok, everyone does :-)

> What I want is, when generating the web form, to automatically generate a
> hash with all the tables and fields represented both as the data values
> and as html snippets that produce an appropriate input field with an
> appropriate default. Somthing like

Maypole probably does everything that you want in a simple CRUD
application : http://search.cpan.org/~teejay/Maypole-2.10/

Or Catalyst if you need something more flexible:

http://search.cpan.org/~mramberg/Catalyst-5.30/

Or roll your own using a combination of these modules:

Class::DBI::AutoLoader
Class::DBI::AsForm
Class::DBI::FromForm
Data::FormValidator
CGI::Application

There are *loads* of modules on the CPAN to help with these tasks.

Simon.

-- 
"My name ? My name is Slartibartfast."

 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to