Signature
Parameters
Optional filter: ‘get’, ‘post’, or ‘set’. When omitted, returns all variables.
Return Value
JSON object containing the requested variables
Description
Thevariables() function returns all variables from the current request as JSON. This is useful when you don’t know variable names in advance.
Examples
Process All Form Fields
Debug Request
Related Functions
- sqlpage.link() - Build URLs with variables
- sqlpage.set_variable() - Modify URL parameters