27 Apr
2000
27 Apr
'00
5:48 p.m.
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