Passing paramaters for form processing
How do I set some parameters for use in a form processing method? I have a HTML "FORM" tag referencing a DTML method name, and I want that method to have visibilty of some variables from the calling methods space. I've tried passing them with the url (eg, "ACTION=/someurl?fred=<dtml-var blah>") and by using REQUEST.set syntax in the calling method. Neither seems to result in the variable being visible to the form processing method. Any ideas? Steve
Hi, Steve Inside the form, you probably want: <input type="hidden" name="fred" value="<dtml-var blah>"> -- Jim Washington steve smith wrote:
How do I set some parameters for use in a form processing method? I have a HTML "FORM" tag referencing a DTML method name, and I want that method to have visibilty of some variables from the calling methods space. I've tried passing them with the url (eg, "ACTION=/someurl?fred=<dtml-var blah>") and by using REQUEST.set syntax in the calling method. Neither seems to result in the variable being visible to the form processing method. Any ideas?
Steve
On Fri, 17 Nov 2000 00:50:50 +1100 you wrote:
How do I set some parameters for use in a form processing method? I have a HTML "FORM" tag referencing a DTML method name, and I want that method to have visibilty of some variables from the calling methods space. I've tried passing them with the url (eg, "ACTION=/someurl?fred=<dtml-var blah>") and by using REQUEST.set syntax in the calling method. Neither seems to result in the variable being visible to the form processing method. Any ideas?
<input type=hidden name="fred" value="<dtml-var fred>"> (Make sure that "fred" doesn't contain a double quote.) --kyler
On Thu, 16 Nov 2000, Kyler B. Laird wrote:
<input type=hidden name="fred" value="<dtml-var fred>"> (Make sure that "fred" doesn't contain a double quote.)
<input type=hidden name="fred" value="<dtml-var fred html_quote>"> or just <input type=hidden name="fred" value="&dtml-fred;"> Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Steve Use hidden fields on the form: <form.......> <input type="hidden" name="blah" value="<dtml-var blah>"> . . . </form> hth Phil phil.harris@zope.co.uk ----- Original Message ----- From: "steve smith" <ssmith6@bigpond.net.au> To: <zope@zope.org> Sent: Thursday, November 16, 2000 1:50 PM Subject: [Zope] Passing paramaters for form processing
How do I set some parameters for use in a form processing method? I have a HTML "FORM" tag referencing a DTML method name, and I want that method to have visibilty of some variables from the calling methods space. I've tried passing them with the url (eg, "ACTION=/someurl?fred=<dtml-var blah>") and by using REQUEST.set syntax in the calling method. Neither seems to result in the variable being visible to the form processing method. Any ideas?
Steve
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Jim Washington -
Kyler B. Laird -
Oleg Broytmann -
Phil Harris -
steve smith