[Zope] Re: passing variables from one DTML method to another ...
Jens Vagelpohl
tommymi@concentric.net
Sat, 20 Nov 1999 11:47:57 -0500
hi darran,
use an invisible input element in your form in this case, something like
this:
<input type="hidden" name="variable_name" value="value">
this will be sent across to the form's target method with all other form
field data, and they aren't visible/editable by the person seeing the form.
jens
> -----Original Message-----
> From: dee124@rsphy1.anu.edu.au [mailto:dee124@rsphy1.anu.edu.au]On
> Behalf Of Darran Edmundson
> Sent: Saturday, November 20, 1999 00:56
> To: zope@zope.org
> Subject: [Zope] Re: passing variables from one DTML method to another
> ...
>
>
>
> I wonder if someone can add to the recent comments about passing
> parameters from one DTML method to another, viz.
>
> > <dtml-if "some_condition">
> > <dtml-var "render_item(_.None, _, input_var1='value1')">
> > <dtml-else>
> > <dtml-var "render_item(_.None, _, input_var1='value2')">
> > </dtml-if>
>
> My problem is that I am trying to pass parameters from my feedback
> form method "feedback_form" to the send method "feedback_send", ie.
>
> <form action="feedback_send(_.None, _, testvar='testval')"
> method="post">
> ... </form>
>
> or
>
> <form action="<dtml-var feedback_send(_.None, _, testvar='3.14')>"
> method="post">
> ... </form>
>
> Neither of these work. Note, these parameters aren't the form data, but
> params I don't want the user to have edit access to. Any ideas are much
> apppreciated.
>
> Cheers,
> Darran.
>
>
> --
> Darran Edmundson [Darran.Edmundson@anu.edu.au]
>
> _______________________________________________
> 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 )
>
>