How i could concatenate the dtml-var and the text to another dtml-var
Hi Everybody, Some could tell me how i could concatenate the dtml-var and the text to another dtml-var for e.g <dtml-call "REQUEST.set('name2','courses')"> <dtml-call "REQUEST.set('name3',join(%, name2, %))"> actually i want name3 dtml-var to contain "%value passed by dtml-var name2%"; in above case "%courses%" if i give <dtml-call "REQUEST.set('name2','courses')"> <dtml-call "REQUEST.set('name3', name2)"> it pass the value of name2 to name3, but if i give the the above frist query it gives me an error. *if some one could tell me how to assign dtml-var with some string to other dtml-var && *how one could assign dtml-var with another dtml-var and a text to 3rd dtml-var Regards Manish Bhatia -------------------------------------------------------------- QuantumLink Communications, Bombay, India
Hi! On Sat, May 06, 2000 at 03:43:25PM +0530, Zope Mailing Lists wrote:
Some could tell me how i could concatenate the dtml-var and the text to another dtml-var
for e.g
<dtml-call "REQUEST.set('name2','courses')"> <dtml-call "REQUEST.set('name3',join(%, name2, %))">
What about <dtml-call "REQUEST.set('name2','courses')"> <dtml-call "REQUEST.set('name3','%'+name2+'%')"> -- christian
Manish wrote:
Hi Everybody,
Some could tell me how i could concatenate the dtml-var and the text to another dtml-var
for e.g
<dtml-call "REQUEST.set('name2','courses')"> <dtml-call "REQUEST.set('name3',join(%, name2, %))">
Here's how I might do it. <dtml-call "REQUEST.set('name2','courses')"> <dtml-call "REQUEST.set('name3', '%' + REQUEST['name2'] + '%')"> Shane
participants (3)
-
cs@comlounge.net -
Shane Hathaway -
Zope Mailing Lists