• Home
  • Popular Downloads
  • Contact Us
  • Submit

Softpile

Free Downloads

Main Navigation
  • Home
  • Windows
  • Mac OS X
  • Business
  • Desktop
  • Development
  • Education
  • Games
  • Internet
  • Multimedia
  • Utilities
Home » Linux » DBIx::HTML::PopupRadio

DBIx::HTML::PopupRadio

March 22, 2009
Convert SQL into a popup menu or radio group
Version: 1.13
License: Perl Artistic License
Operating System: Linux
Homepage: search.cpan.org
Developed by: Ron Savage
DBIx::HTML::PopupRadio is a Perl module to convert SQL into a popup menu or radio group.

Synopsis

 use DBIx::HTML::PopupRadio;

 my($popup_object) = DBIx::HTML::PopupRadio -> new
 (
 dbh => $dbh,
 sql => 'select campus_id, campus_name from campus order by campus_name',
 );

 $popup_object -> set(default => '1');

 my($popup_menu) = $popup_object -> popup_menu();
 my($radio_group) = $popup_object -> radio_group();

 print $popup_menu;

This module takes a db handle and an SQL statement, and builds a hash.

Then you ask for that hash in HTML, as a popup menu or as a radio group.

The reading of the db table is delayed until you actually call one of the methods 'popup_menu' or 'radio_group'. Even then, it is delayed until any parameters passed in to these 2 methods are processed.

After a call to one of these 2 methods, you can call the 'size' method if you need to check how many rows were returned by the SQL you used.

Neither the module CGI.pm, nor any of that kidney, are used by this module. We simply output pure HTML.
converter perl popup menu radio group sql sql converter
Free Download 13K
0
  • Share on:

Sponsored

Categories

  • Linux

Related Downloads

Games::Mines
A mine finding game
Image::Size
A Perl module that can read the dimensions of an image in several popular ...
Lingua::EN::Alphabet::Shaw
Transliterate the Latin to Shavian alphabets
App::CamelPKI::CA
Model of a Certificate Authority in Camel-PKI.
AI::FreeHAL::Class
Support for creating standard "inside-out" classes
Copyright © 1999-2017 Softpile Free Downloads
  • Contact Us
  • Submit
  • Privacy Policy
  • Disclaimer
  • Terms of Use