[pmwiki-users] Can any of the form recipes do this?

Hans design5 at softflow.co.uk
Mon Apr 2 15:31:06 CDT 2007


Monday, April 2, 2007, 9:09:40 PM, Patrick wrote:

> Oh, this is an excellent point.  PHP allows it, yes, but AFAICT it's
> not valid HTML.  However, given that we'd likely want to allow 
> brackets in names (as PHP does), I'd change the pattern to
> something like:

>   "/\\{\\$\\$([A-Za-z][-_:.\\w\\[\\]]*)\\}/e"

> which allows brackets in the names.

thanks! It is looking good. The change will be painful, as all
template pages and Fox forms need to be mended.

I checked for XHTML validation.
This output from PmWiki and Fox is valid XHTML:

<form action='http://softflow.co.uk/design' method='post'>
<input type='hidden' name='n' value='ForumX.WelcomeToForumX' />
<input type='hidden' name='action' value='foxpost' />
<input type='hidden' name='foxname' value='commentform' />
            
<p><input type='hidden' name='target[0]' value='WelcomeToForumX-{FoxCount}' />
<input type='hidden' name='target[1]' value='WelcomeToForumX-0-Index' />
<input type='hidden' name='template[0]' value='CommentFormTemplate' />
<input type='hidden' name='template[1]' value='IndexTemplate' /> 
<input type='hidden' name='topicpage' value='WelcomeToForumX' />
<input type='hidden' name='topic' value='Welcome to ForumX' />

<input type='hidden' name='FoxCount' value='1' />
<input type='hidden' name='foxfilter' value='FoxCount,FoxPTV' />
<input type='hidden' name='ptvtarget' value='ForumX.WelcomeToForumX' />
<input type='hidden' name='ptvfields' value='FoxCount' />
....

As you see i used target[0] target[1] template[0] template[1] etc
as names, to create an array of pagenames as target pages using
corresponding template pages.


  ~Hans




More information about the pmwiki-users mailing list