I am trying to create a cookie based on the value returned from a sql method. The following code fails with an invalid syntax error. <dtml-in SQL_get_cntry> <dtml-call "RESPONSE.setCookie('country_cookie', <dtml-var cntry_cd>)"> <dtml-in> Any guidance will be greatly appreciated -=Brad=-
At 10:28 am -0400 25/5/00, Mabe, Brad wrote:
I am trying to create a cookie based on the value returned from a sql method. The following code fails with an invalid syntax error.
<dtml-in SQL_get_cntry> <dtml-call "RESPONSE.setCookie('country_cookie', <dtml-var cntry_cd>)"> <dtml-in>
<dtml-call "RESPONSE.setCookie('country_cookie', cntry_cd)"> should work hth tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
On Thu, 25 May 2000, Mabe, Brad wrote:
<dtml-call "RESPONSE.setCookie('country_cookie', <dtml-var cntry_cd>)">
Inside double quotes there is Python, not DTML: <dtml-call "RESPONSE.setCookie('country_cookie', cntry_cd)"> Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
<dtml-in SQL_get_cntry> <dtml-call "RESPONSE.setCookie('country_cookie', <dtml-var cntry_cd>)"> <dtml-in>
Try:
<dtml-call "RESPONSE.setCookie('country_cookie', cntry_cd)">
Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Web2k - Web Design/Development & Technical Project Management
participants (4)
-
Mabe, Brad -
Oleg Broytmann -
Stephan Richter -
Tony McDonald