[pmwiki-users] Fox form redirect

Hans design5 at softflow.co.uk
Sat Mar 1 14:19:14 CST 2008


Saturday, March 1, 2008, 7:49:10 PM, Randy wrote:

> This raises another question: what if the posting fails? Shouldn't the
> user be told "Your submission was not posted - perhaps you don't have
> authority to write to the page" rather than "Thank you for your  
> submission"? Of course, the developer can always check first for page
> permission, so it's not needed for that case, but if there are other  
> potential causes of failure, consider failredirect=PageName, with a  
> message or status code passed to the redirected page. Having that  
> would simplify coding.

You can set foxsuccess= and foxfailure= options in a fox form.
And Fox does some error reporting, shown by using th e(:messages:)
markup. The problem here is that if you use redirect, all these
messages will not show! The redirect page just shows as-is.

So do we want options to redirect to a number of dedicated error
pages, cancel page, success page etc? And do the messages need to be
routed to thes epages? It gets more and more tricky...


  ~Hans




More information about the pmwiki-users mailing list