UseModWiki | RecentChanges | Preferences

UseModWiki/Documentation: Functions: GetHiddenValue

Sets a query parameter to a single value and returns a hidden text field containing that parameter and its new value.

I've not looked at all the places in the code where this is called, but I am actually wondering whether this function was written by someone who didn't know you could do $q->hidden("name", "value") Doing it the current way means that there is a side-effect on the global variable $q -- if this is intentional then it should be documented, and if not then it should possibly be fixed as it might come back to bite us in the future.

Given input:

$name, $value

Returns results:

Returns precisely $q->hidden("name", "value") but also has a side-effect on the global CGI object $q

Global variables used


UseModWiki | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited March 29, 2002 1:22 pm by Kake (diff)