[pmwiki-users] Allows forms to default to params passed by URL
Patrick R. Michaud
pmichaud at pobox.com
Wed Apr 5 14:36:33 CDT 2006
On Wed, Apr 05, 2006 at 07:48:32PM +0100, Ed W wrote:
> I would find it extremely useful to be able to populate the initial
> values of "Form" fields (pmwiki forms this is) using the values of the
> POST or GET params. Looking at the code it would seem to be possible to
> modify the InputMarkup function in forms.php to do this, but I am having
> a bit of difficulty getting started....
> Would anyone care to point me in the right direction on this?
If you're using 2.1.0 or later, try the following in your
$InputValues = $_GET;
This tells input forms to take their default values from the $_GET
More information about the pmwiki-users