[pmwiki-users] detect previewing

Stirling Westrup sti at pooq.com
Sat Nov 18 15:19:01 CST 2006


JB wrote:
> Detecting if someone is editing a page
> is easy:
> 
>      if ($action=='edit')
> 
> Is there a way to determine if someone is
> previewing?
> 

Its only slightly harder:

if ($action=='edit' && @$_POST['preview'])
  ...








More information about the pmwiki-users mailing list