accessing REQUEST variable
What am i doing wrong here? I am trying to access a variable passed from a form. I named the input field current_delivery plus a Cust_ID(see below). The variable that i am tried to accessed is part a string and a variable. I've tried to contatenate the "string + variable" with the let tag and used that to access the REQUEST variable. <input type=text name="current_delivery<dtml-var Cust_ID>" value=""> <input type=hidden name="rec.Cust_ID:records"> ---------------------------------------------------------------------- <dtml-in rec mapping> <dtml-let delivery="'current_delivery'+Cust_ID"> <dtml-var "REQUEST['delivery']"> </dtml-let delivery> </dtml-in rec mapping> Basically, i am just trying to access the first input field from above: <dtml-var expr="'current_delivery'+Cust_ID"> Can someone help me with the syntax please? Appreciate any suggestions. Thanks, Mike
--On Mittwoch, 15. Oktober 2003 11:25 Uhr -0600 Mike Doanh Tran <mtran@shufflemasterrd.com> wrote:
What am i doing wrong here?
I am trying to access a variable passed from a form. I named the input field current_delivery plus a Cust_ID(see below). The variable that i am tried to accessed is part a string and a variable. I've tried to contatenate the "string + variable" with the let tag and used that to access the REQUEST variable.
<input type=text name="current_delivery<dtml-var Cust_ID>" value=""> <input type=hidden name="rec.Cust_ID:records"> ---------------------------------------------------------------------- <dtml-in rec mapping> <dtml-let delivery="'current_delivery'+Cust_ID"> <dtml-var "REQUEST['delivery']">
<dtml-var "REQUEST['delivery']"> You're trying to get the key 'delivery' instead of the key that is stored in the 'delivery' variable. So pass the variable and *not* the string. -aj
Thanks Andreas, LOL. I was trying to make it harder then it was. Mike On Wednesday 15 October 2003 11:35 am, you wrote:
--On Mittwoch, 15. Oktober 2003 11:25 Uhr -0600 Mike Doanh Tran
<mtran@shufflemasterrd.com> wrote:
What am i doing wrong here?
I am trying to access a variable passed from a form. I named the input field current_delivery plus a Cust_ID(see below). The variable that i am tried to accessed is part a string and a variable. I've tried to contatenate the "string + variable" with the let tag and used that to access the REQUEST variable.
<input type=text name="current_delivery<dtml-var Cust_ID>" value=""> <input type=hidden name="rec.Cust_ID:records"> ---------------------------------------------------------------------- <dtml-in rec mapping> <dtml-let delivery="'current_delivery'+Cust_ID"> <dtml-var "REQUEST['delivery']">
<dtml-var "REQUEST['delivery']">
You're trying to get the key 'delivery' instead of the key that is stored in the 'delivery' variable. So pass the variable and *not* the string.
-aj
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Andreas Jung -
Mike Doanh Tran