1,988
edits
No edit summary |
mNo edit summary Tag: 2017 source edit |
||
| Line 12: | Line 12: | ||
Example in php: | Example in php: | ||
$myField= $_POST["myField"]; | $myField= $_POST["myField"]; | ||
becomes if the element passed in parameter is a number : | becomes if the element passed in parameter is a number : | ||
$myField= GETPOST("myField", 'int'); | $myField= GETPOST("myField", 'int'); | ||
| Line 69: | Line 69: | ||
Example in php: | Example in php: | ||
if (isset($_POST['myField'])){...} | if (isset($_POST['myField'])){...} | ||
becomes : | becomes : | ||
if (GETPOSTISSET('myField')){...} | if (GETPOSTISSET('myField')){...} | ||
For more information see the comments of the function in the file htdocs/core/lib/functions.lib.php | For more information see the comments of the function in the file htdocs/core/lib/functions.lib.php | ||
edits