This worked. Thanks a lot. Mike -----Original Message----- From: Chris McDonough [mailto:chrism@zope.com] Sent: Tuesday, October 15, 2002 12:29 PM To: Michael Guerrero Cc: zope@zope.org Subject: Re: [Zope] Passing vars in a REDIRECT This should work: <dtml-let emp_id="1741"> <dtml-call "RESPONSE.redirect('view_by_id?emp_id=%s' % emp_id)"> </dtml-let> You cannot embed a <dtml-xxx> inside another <dtml-xxx>. HTH, - C On Tue, 2002-10-15 at 15:19, Michael Guerrero wrote:
All,
At the end of some processing I want to redirect the user to another page using the value of an id field:
If I hard code the emp_id in it works.
<dtml-call "RESPONSE.redirect('view_by_id?emp_id=1741')">
However if I try to replace the hardcoded value with a dtml-var
<dtml-call "REQUEST.set('emp_id',1741)"> <dtml-call "RESPONSE.redirect('view_by_id?emp_id=<dtml var emp_id>')">
I get ththe following error: Invalid integer value for emp_id.
I've tried various combinations of quotes and double-quotes with no luck.
Is ther another way to do this?
Thanks.
Mike
_______________________________________________ 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 (1)
-
Michael Guerrero