Hi all: I using the following: <dtml-let target="'index_html'"> <dtml-call expr="RESPONSE.redirect(target)"> </dtml-let> But I would like to add variables to the url like this: <dtml-let target="'index_html?me=<dtml-var name>&you=<dtml-var you>'"> This doesn't seem to work the way I would like, is their another way to do this? Thanks, Todd
<dtml-let target="'index_html?me=%s&you=%s' % (name,you)"> ----- Original Message ----- From: "Todd Loomis" <tloomis@dmso.mil> To: <zope@zope.org> Sent: Thursday, February 28, 2002 3:55 PM Subject: [Zope] Target Help
Hi all:
I using the following:
<dtml-let target="'index_html'"> <dtml-call expr="RESPONSE.redirect(target)"> </dtml-let>
But I would like to add variables to the url like this:
<dtml-let target="'index_html?me=<dtml-var name>&you=<dtml-var you>'">
This doesn't seem to work the way I would like, is their another way to do this?
Thanks, Todd
_______________________________________________ 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 )
On Thu, 28 Feb 2002, Todd Loomis wrote:
Hi all:
I using the following:
<dtml-let target="'index_html'"> <dtml-call expr="RESPONSE.redirect(target)"> </dtml-let>
But I would like to add variables to the url like this:
<dtml-let target="'index_html?me=<dtml-var name>&you=<dtml-var you>'">
This doesn't seem to work the way I would like, is their another way to do this?
Can't use DTML within DTML. It's just plain Python: <dtml-let target="'index_html?me=' + name + '&you=' + you"> (for safety's sake, you'd want to make sure that you url_quote this whole thing at some point, unless you know that name & you will already but url_quoted.) HTH. -- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
participants (3)
-
Joel Burton -
Phil Harris -
Todd Loomis