[pmwiki-users] Again: Parameterizing Content

Felix E. Klee felix.klee at inka.de
Thu May 18 14:36:53 CDT 2006


At Wed, 17 May 2006 23:34:48 +0200,
Joachim Durchholz wrote:
> You can have your config.php look into the $_REQUEST array and place
> it in a variable that could be accessible from any recipe code. I.e.
> 
>    $my_x = $_REQUEST ['inp_x'];
> 
> will fill the PHP variable $my_x with 3 if the URL had inp_x=3 in the
> query string.

Nice to see that it's that simple.

> I don't know how to set up a new page variable though, or whether
> that's the best way to continue processing - I think a lot depends on
> what exactly you want to achieve.

Well, this is essential for both solutions that I proposed.  In the
first solution I proposed, the results of the function call are stored
in page variables.  In the second solution, the input values are stored
in page variables that get passed on to CGIs.

-- 
Felix E. Klee




More information about the pmwiki-users mailing list