[pmwiki-users] PmForm on request, edit structured data on pages

shout at joshleepictures.com shout at joshleepictures.com
Sun Jan 20 13:45:33 CST 2013


>>> BTW: Is there a simple way to get something like
>>> array_merge($_GET, $_POST)["useform"];
>>> in PHP older than 5.4?
>>> Excuse my ignorance, I'm a "plain old C" programmer.
>> 
>> Is there a reason why you do not use $_REQUEST instead of $_GET/$_POST?
> 
> $_REQUEST contains also cookie data, doesn't it? I want to avoid
> unwanted effects.

that’s true. you can eliminate ‘unwanted effects’ by using pseudo-unique namespaces in your variable naming, e. g. $_REQUEST['namespaceVarname'].
fyi array_merge() is available in PHP 4 and PHP 5.


More information about the pmwiki-users mailing list