help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Procedures and functions] Reference for unit 'pwumain' (#powtils_main)

FetchCgiVarName

Declaration

Source position: pwumain.pas line 70

function FetchCgiVarName(

  index: LongWord

):String;

Notes

Indexed access to CGI variable name in the array of variables. The array is zero based. The array or list of CGI variables includes URL variables that have been set, and POST/GET variables.

Example

var
  cnt: integer;
begin
  cnt:= CountCgiVars;
  // print both name and value of all cgi vars
  if cnt > 0 then
    for i := 0 to cnt - 1 do
      webwrite(FetchCgiVarName(i) + '=' + FetchCgiVarValue(i) + '<br />' );
end.





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505