Sunday, January 31, 2010, 9:31:46 PM, Frank wrote: > Yes, yes, the current data should be displayed as default values of the > input fields/selections, > and updated in the very forms (with submit)
Fine. Here is a short test form using fox.php which should be added to each page you want the input form and data display. Data is saved as PTVs, so could be used in other pages, pagelists etc. In order for Fox to work you need to set security permissions for Fox to be able to update ptvs on the pages. (:foxmessages:) (:fox frm ptvtarget={$FullName}:) (:input defaults source={$FullName}:) (:input text name=$:abc:) (:input text name=$:xyz:) (:input select name=$:color red :) (:input select name=$:color green :) (:input select name=$:color blue :) (:input submit post 'Save':) (:foxend frm:) Brief explanation: (:foxmessages:) for feedback and error message display. (:fox frm ptvtarget={$FullName}:) start of fox form, tells fox to do adding and updating of PTVs on current page. (:foxend frm:) end of fox form. (:input text name=$:abc:) etc. standard PmWiki input controls. name is set to PTV called 'abc' If PTV does not exists it will be created with first submission of a value as a hidden PTV. (:input defaults source={$FullName}:) sets the defaults of the form fields using data from the current page, i.e. the PTV values saved will be displayed. Hans _______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel