[pmwiki-users] ZapForms and Input Select
Nicholas Buttle
nicholas_buttle at yahoo.com
Tue Apr 10 10:20:18 CDT 2007
hi
Can anyone show me how to integrate these two?
1. An input select based upon the Profiles Group
(:if false:)
[[#dropdownlist]]
(:input select name=n {=$FullName} "{=$Name}":)
[[#dropdownlistend]]
(:if:)
(:pagelist fmt=#dropdownlist group=Profiles:)
and
2. Dan's Inlist snippet for ZAP.
[[#ID]]
||border=0
||'''You are:''' ||{$AuthId}
||'''List:''' ||{$:mylist}
(:if inlist {$AuthId}|mylist|Snippets.InList:)
* You are in the list.
(:if ! inlist {$AuthId}|mylist|Snippets.InList:)
* You are not in the list.
(:ifend:)
(:zapform:)
(:messages:)
(:input submit button "Add Me":) (:input submit
button "Drop Me":)
(:zap if1="equal '{button}' 'Add Me' ?
mylist=+{$AuthId}":)
(:zap if2="equal '{button}' 'Drop Me' ?
mylist=-{$AuthId}":)
(:zap mylist="":)
(:zap savedata="mylist":)
(:zapend:)
[[#ID]]
(:mylist:)
--------
I'm never on PMWiki long enough to retain my
knowledge...that and I'm thick!
TIA
Nicholas
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
More information about the pmwiki-users
mailing list