1,988
edits
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
GETPOST() : function to retrieve the content of GET or POST variables in a more secure way. The PHP methods $_GET and $_POST should not be used. | GETPOST() : function to retrieve the content of GET or POST variables in a more secure way. The PHP methods $_GET and $_POST should not be used. | ||
Possible use : | Possible use : | ||
| Line 17: | Line 18: | ||
$myField= GETPOST("myField", 'int'); | $myField= GETPOST("myField", 'int'); | ||
Possible parameters of the second argument : | |||
Possible parameters of the second argument : | |||
*'none' = for no parameter type check | *'none' = for no parameter type check | ||
| Line 30: | Line 32: | ||
*'alphanohtml' = checks that there is no html code | *'alphanohtml' = checks that there is no html code | ||
*'custom' = defined by the following filters and options with the parameters $filter and $options | *'custom' = defined by the following filters and options with the parameters $filter and $options | ||
{| class="wikitable" | {| class="wikitable" | ||
edits