[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] setting cgi, value or scratch to [data] value
At 11:19 AM 7/3/2002 -0400, you wrote:
>Hello again ic users.
>
>I need some help with the following line does not set the cgi variable
>cgi_var to the value returned by the data tag. I get a page with:
>"]"]
>returned.
>
>----- code with problem -------
>
>[cgi interpolate=1 name=cgi_var hide=1 set="[data interpolate=1
>table="tablename" column="colname" key="[data session arg]"]"]
>
>----- END code with problem -------
>
>The data tag by itself works:
>[data interpolate=1 table="tablename" column="colname" key="[data
>session arg]"]
>
>Thank you.
>
>---
>Larry
You can't nest quotation marks (set="....bob="zzz"..."), to do so, mix in
other quotation marks:
set=|...bob="zzz"...|
set="...bob='zzz'..."
And if *that* doesn't work, try perl:
[perl] $CGI->{cgi_var} = $Tag->data('session', 'arg'); [/perl]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Browning, Kavod Technologies <db@kavod.com>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Corrupt, adj.:
In politics, holding an office of trust or profit.