[pmwiki-users] how to re-show form with pre-existing field data?
Patrick R. Michaud
pmichaud at pobox.com
Mon May 21 10:57:49 CDT 2007
On Mon, May 21, 2007 at 04:43:53PM +0100, Hans wrote:
> Monday, May 21, 2007, 4:43:39 PM, Shi Sherebrin wrote:
>
> > There are some required fields, and when they are left blank, the form is
> > re-displayed with a "data missing" message. However, when this
> > happens all the other forms that *were* filled out come back blank.
> > Apparently this is something that should be solvable at the PmWiki
> > level. I'd welcome ideas for how to do this.
>
> try in a local config file:
>
> # POST input values will be preserved
> foreach ($_POST as $k=>$v) {
> if(!is_array($v))
> $InputValues[$k] = htmlspecialchars($v);
> }
In later betas one can also use the markup
(:input defaults request=1 :)
to get the same effect.
Pm
More information about the pmwiki-users
mailing list