7. cgi::GetParamEx("name",q) cgi::PostParamEx("name",q)

[<<<] [>>>]

q = undef
cgi::GetParamEx("param",q)
cgi::GetParamEx("param",q)

q = undef cgi::PostParamEx("param",q) cgi::PostParamEx("param",q)

These functions can be used to iteratively fetch all parameter values passed with the same name. While the functions Param, GetParam and PostParam return the value of the first parameter of the name these functions can be used to retrieve the second, third and so on parameters.

The first parameter is the name of the CGI variable.

The second argument is an iteration variable that the function uses internally. This argument is passed by value and therefore it should be a variable to reach proper functioning. This variable should be undef when first calling the function. Later the value of this variable is set to a string that represents an internal value that the basic code SHOULD NOT alter. The value can be moved from one variable to another, but should not be changed.

The function returns undef when there are no more CGI variables of the name and the iteration variable is also set to hold the undef value.

The CGI parameter names are case sensitive according to the CGI standard.


[<<<] [>>>]