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

Peter Bowers pbowers at pobox.com
Mon Jan 21 14:53:19 CST 2013

On Mon, Jan 21, 2013 at 8:37 PM, Oliver Betz <list_ob at gmx.net> wrote:
> >>>>>> 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.

Never knock a C programmer!  They're keeping the world rotating on its
axis! :-)

It's a bit boring and C-like, but why not just use a simple ternary

isset($_GET['useform']) ? $_GET['useform'] : @$_POST['useform'];

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20130121/2c263ebd/attachment.html>

More information about the pmwiki-users mailing list