CGI.checkInput.3kaya

Langue: en

Version: May 2010 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

CGI::checkInput - Check that the input string was one of a list of options

SYNOPSIS

String checkInput( String inp, [String] options, String def )

ARGUMENTS

inp String to check

options Valid inputs

def Default if no valid input received

DESCRIPTION

Checks that an input string is one of a defined list of options, returning it if so, returning a default value otherwise. This function accepts a Tainted string as inp , and so can be used to detaint.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

Builtins.Tainted(3kaya)