Re: [Zope] <dtml-var expr="RESPONSE.redirect Question
the problem is that I don't know how to add The_value to the URL I did: <dtml-call "RESPONSE.redirect('Disponibilidad_html?Arrival= <dtml-var dcArrival>&Departure= <dtml-var Departure> ')"> but ofcourse this does not work ! I just want to pass on some variables like forms do. Thanks!!
From: Dylan Reinhardt <zope@dylanreinhardt.com> Reply-To: zope@dylanreinhardt.com To: Alexander Alvarado <funalito@hotmail.com> CC: Zope Users <zope@zope.org> Subject: Re: [Zope] <dtml-var expr="RESPONSE.redirect Question Date: 11 Sep 2003 11:40:39 -0700
On Thu, 2003-09-11 at 11:34, Alexander Alvarado wrote:
Hi, this is adum question, but how can I include variables in the redirect expresion, I want to redirect to a page and at the same page send the variables what I want is something like this:
<dtml-var
expr="RESPONSE.redirect('Disponibilidad?Arrival=The_value&Departure=The_value')">
Where The_value is a date sent from an other page...
Assuming that Disponibilidad resolves to a full URL (with http://) and The_value can be acquired, what you have should work.
What errors/problems are you seeing?
Dylan
_________________________________________________________________ Charla con tus amigos en lĂnea mediante MSN Messenger: http://messenger.yupimsn.com/
On Thu, Sep 11, 2003 at 07:13:51PM +0000, Alexander Alvarado wrote:
the problem is that I don't know how to add The_value to the URL
I did: <dtml-call "RESPONSE.redirect('Disponibilidad_html?Arrival= <dtml-var dcArrival>&Departure= <dtml-var Departure> ')">
but ofcourse this does not work !
right. When you do <dtml-var foo> (no quotes), there is some magic that's applied to figure out what foo is and how to render it. But when you do <dtml-var "foo"> or <dtml-call "foo">, "foo" must be a valid python expression. DTML tags are not valid python expressions. See my other reply for how you can get at request variables in a python expression. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's META TONGUE GUY! (random hero from isometric.spaceninja.com)
participants (2)
-
Alexander Alvarado -
Paul Winkler