Signature
Parameters
The name of the variable to set
The value to set (NULL removes the variable)
Return Value
URL with the modified parameter
Description
Theset_variable() function creates links that modify one parameter while preserving all others. Useful for filters, pagination, and sorting.
Examples
Filter Buttons
Pagination
Related Functions
- sqlpage.link() - Build URLs with parameters
- sqlpage.path() - Get current path