[pmwiki-users] Building form with arbitrary data
vkrishn4 at gmail.com
Sat Oct 20 08:02:38 CDT 2012
On Saturday, October 20, 2012 07:02:28 AM Petko Yotov wrote:
> This page may be helpful:
Thanks, I think this should help.
1. Also can there be support for multiple select,
as suggested in comments on this page.
I tried making some changes to InputToHTML function:
$opt[$checked] = in_array(@$opt['value'],
(array)explode(',',str_replace(' ','', $InputValues[$name])))
? $checked : false;
and was able to see multiple selects.
I hope there are not more changes required for this feature.
2. Have this page also available in documentation(PmWiki).
> V.Krishn writes:
> > I wanted to pass any arbitrary set of data to a script:
> > eg:
> > name: xyx
> > birthday: 1,1,2012
> > and return a form with prefilled data, to display(only),
> > It should take care of marking the required select menus as selected for
> > birthday(day, month, year).
> > I am ok with writing an intermediary/wrapper script if required.
> > Went though http://www.pmwiki.org/wiki/Category/Forms but not sure which
> > of them could help me for this purpose.
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users