[forwarded submission from a non-member address -- rjk]


From: srl <[EMAIL PROTECTED]>
Date: Tue, 13 Feb 2001 23:21:01 -0500 (EST)
Subject: FormMagick
To: Boston Perl Mongers <[EMAIL PROTECTED]>, [EMAIL PROTECTED]

(CCed to NY.pm for the one guy from NY who was in attendance.)

I mentioned tonight at the Boston.pm meeting that I'm working on a
project to generate and process HTML forms. Someone requested that I
post the info.

FormMagick (http://sourceforge.net/projects/formmagick/) allows you
to write an XML description of a multi-page web form, specifying
validation logic, functions to populate the form, and functions to
process the submitted data. It then generates the actual HTML
on-the-fly and processes the submitted data when the user's finished
filling out the form. 

FormMagick was Kirrily "Skud" Robert's idea; I'm just a developer on
the project. It's currently in version 0.2, though 0.3 should be out
within 2-3 weeks. Here's a sample of the XML input it takes:

---------------------------------------------------
  <FORM TITLE="FormMagick demo 
application" HEADER="testfm_header.tmpl" FOOTER="testfm_footer.tmpl"
 PRE-EVENT="setup_form" POST-EVENT="submit_order">
    <PAGE TITLE="Personal details" TEMPLATE="myform_page.tmpl"
      POST-EVENT="lookup_group_info">
      <FIELD ID="firstname" LABEL="Your first name" TYPE="TEXT"
        VALIDATION="nonblank"/>
      <FIELD ID="lastname" LABEL="Your surname" TYPE="TEXT"
        VALIDATION="nonblank"/>
      <FIELD ID="username" LABEL="Choose a
username" TYPE="TEXT" VALUE="username"
        VALIDATION="username, minlength(4)"/>
      <FIELD ID="group" LABEL="Choose a group" TYPE="SELECT"
        OPTIONS="my_groups" VALIDATION="nonblank"/>
    </PAGE>
 [....]
  </FORM>
----------------------------------------------------

srl

-- 
Shane R. Landrum         [EMAIL PROTECTED] 
we generate our own light to compensate for the lack of light from above -AD
GPG public key: http://cs.smith.edu/~slandrum/srl_pgpkey.txt

Reply via email to