Home arrow Zope arrow Page 2 - Form Processing With Zope

Driving Under The Influence - Zope

Ever wondered how to create and process HTML forms in the Zope environment? Relax. It's simpler than you think.

TABLE OF CONTENTS:
  1. Form Processing With Zope
  2. Driving Under The Influence
  3. Stringing Things Along
  4. Running On Empty
  5. In The Raw
  6. You've Got Mail!
  7. Endgame
By: Team Melonfire, (c) Melonfire
Rating: starstarstarstarstar / 13
February 26, 2002

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
Now, how about that FormProcessor? Well, it's another DTML Document, and it looks like this:

<dtml-var standard_html_header> Welcome to Earth, <b><dtml-var species></b> from the planet <b><dtml-var planet></b>. <p> How was your journey? Travelling <b><dtml-var distance></b> light years must be quite a shock to the system. Why don't you relax and have a drink? <dtml-var standard_html_footer>
When the Form is submitted, the data entered into it comes to the FormProcessor as DTML variables, and can be displayed on the page simply by referencing the appropriate form variable. So, to display the contents of the field

<input name="species">
in the Form object, I would use the code

<dtml-var species>
in the FormProcessor object.

Here's what a submitted form looks like:



 
 
>>> More Zope Articles          >>> More By Team Melonfire, (c) Melonfire
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

ZOPE ARTICLES

- Creating Zope Products
- Plone Content Types With Archetypes
- Flat User Management in Zope
- Creating Basic Zope Applications
- Getting started with Zope for Linux and Sola...
- ZPT Basics (part 4)
- ZPT Basics (part 3)
- ZPT Basics (part 2)
- ZPT Basics (part 1)
- Exception Handling In DTML
- DTML Basics (part 4)
- DTML Basics (part 3)
- DTML Basics (part 2)
- DTML Basics (part 1)
- Using Zope With Apache

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: