[pmwiki-users] Fox form redirect

Randy randy at brownragfilms.com
Sat Mar 1 13:49:10 CST 2008

Between the two, I would suggest cancelredirect=PageName. Here's my  
thinking: If staying on the page makes sense, then instead of a Cancel  
button the form should have a Clear button or no button at all.

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.


On Mar 1, 2008, at 1:27 PM, Hans wrote:

> what would be the best for a 'cancel' event?
> to redirect to the current page ($PageUrl)?
> or to redirect to a dedicated cancelredirect=PageName ?
> (and if that is not used to the current page)

More information about the pmwiki-users mailing list