Go to main content

set_cgidata

Sets a new version of cgidata

SET_CGIDATA

NAME

set_cgidata - Sets a new version of the cgidata context.

SYNOPSIS

set_cgidata(cgidata);

PARAMETERS

cgidata (context - required)
The new context that will overwrite the original.

DESCRIPTION

This function will overwrite the original values of cgidata with the context passed in parameter.

This function is available from version 5.166 of Sncode.

EXAMPLES

// ?test=1234
cgidata = cgidata();
cgidata;
// {"test": "1234"}
cgidata = {"test": "5678"};
cgidata;
// {"test": "5678"}
set_cgidata(cgidata); // Overwrite the original values of cgidata with this
cgidata = cgidata();
cgidata;
// {"test": "5678"}

SEE ALSO

AUTHOR

Written by Guillaume Bois, <guillaume@sednove.com>

MODIFICATIONS

1.0 2021-10-01 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.