[pmwiki-devel] Form messages question
Patrick R. Michaud
pmichaud at pobox.com
Wed Jan 3 12:58:45 CST 2007
On Wed, Jan 03, 2007 at 05:25:08PM -0000, marc wrote:
> Patrick R. Michaud said...
> > On Wed, Jan 03, 2007 at 11:24:04AM -0000, marc wrote:
> > > I thought that all I needed to do in HandleSomeAction() is:
> > >
> > > global $MessagesFmt;
> > > $MessagesFmt[] = 'some message';
> > > Redirect($pagename);
> > >
> > > But this doesn't work.
> > ...
> > What you probably really want is to simply call
> > HandleBrowse() (or whatever is in $HandleActions['browse']),
> > so that PmWiki will re-display the form along with your
> > validation message(s).
>
> Should I simply exit the handler function with return after HandleBrowse
> ()? (On the presumption that I'm done with the function, obviously ;-) )
I would do it as:
# ...
global $HandleActions, $MessagesFmt;
$MessagesFmt[] = 'some message';
$fn = $HandleActions['browse'];
return $fn($pagename, $auth);
Pm
More information about the pmwiki-devel
mailing list