[Zope] Passing vars in a REDIRECT
Michael Guerrero
mguerrero@tachyon.net
Tue, 15 Oct 2002 12:46:16 -0700
This worked. =20
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=3D"1741">
<dtml-call "RESPONSE.redirect('view_by_id?emp_id=3D%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,
>=20
> At the end of some processing I want to redirect the user to another =
page using the value of an id field:
>=20
> If I hard code the emp_id in it works.
>=20
> <dtml-call "RESPONSE.redirect('view_by_id?emp_id=3D1741')">
>=20
>=20
> However if I try to replace the hardcoded value with a dtml-var
>=20
> <dtml-call "REQUEST.set('emp_id',1741)">
> <dtml-call "RESPONSE.redirect('view_by_id?emp_id=3D<dtml var =
emp_id>')">
>=20
> I get ththe following error: Invalid integer value for emp_id.
>=20
> I've tried various combinations of quotes and double-quotes with no =
luck.
>=20
> Is ther another way to do this?
>=20
> Thanks.
>=20
> Mike
>=20
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )