[pmwiki-users] Simple form to data base

Hans design5 at softflow.co.uk
Thu Feb 21 18:02:35 CST 2008

Thursday, February 21, 2008, 7:36:44 PM, Jody Klymak wrote:

> I want a form that has Name, Address, email that anyone can edit and 
> submit and then their info will be stored on another page in a list with
> everyone else who has done the same thing.  I'm nto too fussy about 
> format.  Is there an easy way to do this that I missed?

using Fox a form could look something like this in markup:

(:fox frm target=TargetPageName redirect=1:)
(:foxtemplate "||{$$name}} ||{$$address} ||{$$email ||":)
|| Name:||(:input text name size=30:) ||
|| Address:||(:input text address size=30:) ||
|| Email:||(:input text email size=30 ||
|| ||(:input submit post 'Add to List':) ||
(:foxend frm:)

of course you could use more input fields etc.

On the target page create a simple table with the headings for the
list, Fox will add new entries as table rows below it, according to
its single row template. You can get more fancyfull by using
a separate template page.

||!Name ||!Address ||!Email ||

If you use Fox make sure you read about the security settings, and
set page permissions for the target page.


More information about the pmwiki-users mailing list