[pmwiki-users] Validating and appending data from Forms and Displaying

Hans design5 at softflow.co.uk
Fri Mar 21 02:30:20 CDT 2008


Thursday, March 20, 2008, 10:08:13 PM, Hans wrote:

> Fox can handle input validation, and you could create a custom filter
> function (php) which checks input against the list of values.
> If the validation and input check are okay Fox can add input to a
> page to generate the registration list.

For validation purposes only you would not need to create a custom
foxfilter function. You can use

(:foxcheck name if="intext {$$name} PageName" ... :)

where 'name' is the input field name and 'PageName' the name of the
page which holds a list of 'authorised for registration' strings.
You find a definition for the custom intext conditional markup here:
http://www.pmwiki.org/wiki/Cookbook/ConditionalMarkupSamples

If page PageName needs to be read protected you may need to change the
intext function to allow for reading the page content even if a user
has no read access (use 'ALWAYS' instead of 'read' in RetrieveAuthPage
or use ReadPage)

  ~Hans




More information about the pmwiki-users mailing list