[Zope] REQUEST.form variables order

Andrew Milton akm at theinternet.com.au
Thu Apr 20 07:23:31 EDT 2006


+-------[ Gaute Amundsen ]----------------------
| On Thursday 20 April 2006 12:15, Andrew Milton wrote:
| > +-------[ Gaute Amundsen ]----------------------
| >
| > | Hm.. ok.
| > | I have these 100 forms, all over the place. They live in user editable
| > | html. To have to track down and alter them all is out of the question.
| > | Yet the users expect the form fields to appear in their emails in the
| > | order that they put them on the page.
| >
| > Render the page with the fields filled and convert to text and place in
| > email.
| 
| Hm.. now that is an idea...
| 
| I would have to depend on referer I guess, but as long as it degraded 
| gracefully..
| 
| But, why render the page, when I could just parse it to get the field order?
| Fun with regexp, or dom :)

Because you can just throw it at the ZPT or DTML engines, convert to text 
and as a side-effect you get something ready to put into the email?

If you want to write your own parser, feel free.

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list