Sometimes when developing a module, particularly when dealing with forms, it is useful to dump out the incoming parameters to see exactly what input your module is receiving. This recipe shows a pair of methods for displaying that information: one directly to your web browser, the other to your PHP error log.
action.editarticle.php, and immediately after the
$gCmstest, add a debug statement. The first three lines will look like: ...