You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_dtcl@tcl.apache.org by "David N. Welton" <da...@dedasys.com> on 2002/12/03 19:05:05 UTC
Re: var get
"Zeinert, Holger" <Ho...@lms-gmbh.de> writes:
> I thought I sent this already, but I'm not sure, so I post it again:
> when using similar GET/POST variable names like "var1", "var12",
> "var13" all starting with a the same string "var1", but some are
> longer. How can I get *only* value of "var1". When trying [var get
> var1] it returns a list with all values of variables, matching
> "var1*". Is there an -exact option? I could not find it in the
> documentation. I did not looked it up in the source code, though.
This sounds like a bug we fixed a while ago (Thanks to David Brancato
for catching it) - are you running the latest version?
I do:
http://localhost/foo.ttml?var1=foo&var12=bar
with this:
puts [var get var1]
and just get 'foo'.
Sorry for the late reply - I was off in Arizona for Thanksgiving.
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: mod_dtcl-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_dtcl-help@tcl.apache.org