diff --git a/lang/en/docs/coding.html b/lang/en/docs/coding.html
index 725371c9c48..8983869a63b 100755
--- a/lang/en/docs/coding.html
+++ b/lang/en/docs/coding.html
@@ -220,6 +220,45 @@ GOOD: $assignments (for an array of objects)
+
$a = array()
+ or $obj = new stdClass();.optional_variable() function. Use the optional_param()
+ function instead. Pick the correct PARAM_XXXX value for the data type you expect. To check and set an optional
+ value for a variable, use the set_default() function.require_variable() function. Use the required_param()
+ function instead. Pick the correct PARAM_XXXX value for the data type you expect.$_GET, $_POST or $_REQUEST. Use the
+ appropriate required_param() or optional_param appropriate to your need.if (isset($_GET['something'])).
+ Use, e.g., $something = optional_param( 'something','',PARAM_ALPHA ) and test with
+ empty() functionrequired_param(), optional_param()
+ and other variables initialisation at the beginning of each file to make them easy to find.<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />.
+ When you process the form check with if (!confirm_sesskey()) {error('Bad Session Key');}.clean_filename() function, if this
+ has not been done already by appropriate use of required_param() or optional_param()
+ addslashes() applied to it before it
+ can be written back. A whole object of data can be hit at once with addslashes_object().POST
+ data (ie, data from a form) as opposed to GET data (ie, data from the URL line).$_SERVER if you can avoid it. This has portability
+ issues.clean_param function using the appropriate PARAM_XXXX for the datatype.Version: $Id$