An ugly solution is <a href="adr_change_frm?f_id=<dtml-var
"_.string.replace(id, ' ', '+'">&f_name=<dtml-var "_.string.replace(name, '
', '+')">">c</a>

Be careful that other none url compliant characters dont slip into your
variables.

--
  Andy McKay, Developer.
  ActiveState.

----- Original Message -----
From: "Olaf Zanger" <[EMAIL PROTECTED]>
To: "Zope Mailinglist" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 6:55 AM
Subject: [Zope] default values in forms


> hi there,
>
> i'd like to send default values for an data update with the link to the
> form
>
> like
> <a href="adr_change_frm?f_id=<dtml-var id>&f_name=<dtml-var name>">c</a>
>
> unfortunately name may contain spaces.
>
> i found out that spaces may be replaced by "+" in the link,
> but how do i get the "+" into the <dtml-var ...> statement?
>
> thanks for help
>
> olaf
>
>
> --
> soli-con Engineering Zanger
> Dipl.-Ing. (FH) Olaf Zanger Nusch
> Lorrainestrasse 23
> 3013 Bern / Switzerland
> Fon: +41-31-332 9782
> Mob: +41-76-572 9782
> mailto:[EMAIL PROTECTED]
> mailto:[EMAIL PROTECTED]
> http://www.soli-con.com


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to