GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  VEND::FORM (3)

.ds Aq ’

NAME

Vend::Form -- Interchange form element routines

CONTENTS

SYNOPSIS

(no external use)

DESCRIPTION

Provides form element routines for Interchange, emulating the old tag_accessories stuff. Allows user-added widgets.

ROUTINES

    yesno

Provides an easy Yes/No widget. No returns a value of blank/false, and Yes returns 1/true.

Calling:



  {
    name => varname || undef,       ## Derived from item if called by
                                       # [PREFIX-options] or [PREFIX-accessories]
    type => yesno || yesno radio, ## Second is shorthand for variant=>radio
    variant => radio || select,   ## Default is select
  }



The data array passed by passed is never used, it is overwritten with the equivalent of ’=No,1=Yes’. No and Yes are generated from the locale, so if you want a translated version set those keys in the locale.

If you want another behavior the same widget can be constructed with:



        [display passed="=My no,0=My yes" type=select ...]



    noyes

Same as yesno except sense is reversed. No returns a value of 1/true, and Yes returns blank/false.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 VEND::FORM (3) 2010-03-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.