Hi there. I have an form with fields that i would like to fill values from dtml-vars. How ever one of the dtml-vars contain space. ex "c:\my download\filename" and when it is used in a form <TR><TH>Fil Namn</TH> <TD><INPUT TYPE="TEXT" NAME="fil_namn" VALUE=<dtml-var tmp_filnamn>
</TD> </TR>
This will display in the field c:\my How on earth do I get the rest to be displayed ?? Fred
Rubinstein Fredrik writes:
I have an form with fields that i would like to fill values from dtml-vars.
How ever one of the dtml-vars contain space.
... value="&dtml-your_var;" ... Note the enclosing "...". This is necessary to include space (and other funny characters) inside the value. Also note the "&dtml-XXX" (entity reference syntax). This is equivalent to <dtml-var XXX html_quote> The "html_quote" is necessary to correctly quote characters (e.g. ") that otherwise would mangle the value. Dieter
participants (2)
-
Dieter Maurer -
Rubinstein Fredrik