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



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

FetchVarName

Declaration

Source position: pwumain.pas line 191

function FetchVarName(

  index: LongWord

):String;

Notes

Fetches a variable (cookies, sessions, POST/GET, template vars) that is set, by its index (for e.g. can be used in a loop).

Tips

This function checks all vars including cookie, session, url, GET, POST.

This is different than using GetVar which gets by name instead of index.

To just check url vars or GET/POST, use FetchCgi functions.

This is a general function. You will get slightly more performance if you just call the direct more specific function like FetchSess, FetchCookie, FetchCgi, etc.






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