[Zope] RESPONSE.redirect - dynamic names?
Steve Alexander
steve@cat-box.net
Thu, 27 Apr 2000 18:48:54 +0100
Geoff Gardiner wrote:
>
> Is there some reason why the insertion of a variable into a redirect might
> not work? Thus:
>
> <dtml-let param="'sometext'"> -- sets param
> <dtml-var param> -- prints param as 'sometext'
> <dtml-call "RESPONSE.redirect('processform?withparam=<dtml-var param>')">
> -- sends the string 'withparam=' across, missing the param value
>
> The characters making up 'sometext' are valid HTML characters.
Use the following:
<dtml-call "RESPONSE.redirect('processform?withparam=' + param)">
Inside those double quotes, you're in Python-speaking land, not DTML
land.
--
Steve Alexander
Software Engineer
Cat-Box limited