[Zope] accessing REQUEST variable

Andreas Jung andreas at andreas-jung.com
Wed Oct 15 13:35:32 EDT 2003



--On Mittwoch, 15. Oktober 2003 11:25 Uhr -0600 Mike Doanh Tran 
<mtran at 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



More information about the Zope mailing list