1CGI.checkInput(3kaya) Kaya module reference CGI.checkInput(3kaya)
2
3
4
6 CGI::checkInput - Check that the input string was one of a list of
7 options
8
10 String checkInput( String inp, [String] options, String def )
11
13 inp String to check
14
15 options Valid inputs
16
17 def Default if no valid input received
18
20 Checks that an input string is one of a defined list of options,
21 returning it if so, returning a default value otherwise. This function
22 accepts a Tainted string as inp , and so can be used to detaint.
23
25 Kaya standard library by Edwin Brady, Chris Morris and others
26 (kaya@kayalang.org). For further information see http://kayalang.org/
27
29 The Kaya standard library is free software; you can redistribute it
30 and/or modify it under the terms of the GNU Lesser General Public
31 License (version 2.1 or any later version) as published by the Free
32 Software Foundation.
33
35 Builtins.Tainted (3kaya)
36
37
38
39Kaya December 2010 CGI.checkInput(3kaya)