Tuesday, May 27, 2008, Hans wrote: > You could use pmwiki input controls and build a form like this: > > (:input form action="http:/example.com/mailman/subscribe/my-list > method=POST":) > To join our mailing list,\\ > enter your email address\\ > and press Subscribe: > > (:input text email style="width: 90px;" size="30" value="">\\ > (:input submit name="email-button" value="Subscribe":) > (:input end:)
Sorry, this should be (:input form action="http:/example.com/mailman/subscribe/my-list" method=POST:) To join our mailing list,\\ enter your email address\\ and press Subscribe: (:input text email style="width: 90px;" size="30" value="">\\ (:input submit name="email-button" value="Subscribe":) (:input end:) Using input markup does not mean you have to use a PmWiki form processing script, like Fox or PmForm. The markup is just helping to build a form. Which script is processing it depends on the 'form action=.....' parameter. Fox does not use this (:input form action=... :) markup, but uses a custom (:fox formname ...:) markup instead. PmForm does likewise. But both result in HTML which has a <input form action=$ScriptUrl method=POST> and a <input hidden action .....> tag which makes pmwiki.php the processing script, using a ?action=... parameter. In Fox case this is action=foxpost, which calls the main Fox function to process the input. I hope this helps a bit in clarifying the use of input form elements. ~Hans _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
