Accessing values passed via a HTML form using the form attribute of the REQUEST object
Hello, does anyone know how to use the form attribute of the REQUEST object to access parameters passed via a HTML form from a DTML document to a DTML method? When I try to use the form attribute, Zope flags me with a key error. Any input would be greatly appreciated. Thanks. -Asad __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Asad Habib wrote at 2003-2-7 14:13 -0800:
Hello, does anyone know how to use the form attribute of the REQUEST object to access parameters passed via a HTML form from a DTML document to a DTML method? When I try to use the form attribute, Zope flags me with a key error. Any input would be greatly appreciated.
When you describe a problem, you should provide more input... Minimal info required: Error Type, Error Value and Traceback! In your case, a bit of code had been helpful, too. The following should work: <dtml-var expr="REQUEST.form.get('yourFormVariable')"> often (when there are no name conflicts), you can also use <dtml-var expr="REQUEST.get('yourFormVariable')"> or even <dtml-var yourFormVariable> Dieter
Asad, I'm not sure but I think that in order to access the value of a field you just have to call the REQUEST like this: REQUEST.fiedlName Hope this helps Bye Catonano Venerdì, 7 feb 2003, alle 23:13 Europe/Rome, Asad Habib ha scritto:
Hello, does anyone know how to use the form attribute of the REQUEST object to access parameters passed via a HTML form from a DTML document to a DTML method? When I try to use the form attribute, Zope flags me with a key error. Any input would be greatly appreciated. Thanks.
participants (3)
-
Asad Habib -
catonano -
Dieter Maurer