On Thursday 14 December 2000 04:52, Ivan Cornell wrote:
> Olaf Zanger wrote:
> > 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?
>
> Try
> <a href="adr_change_frm?f_id=<dtml-var id>&f_name=<dtml-var name
> fmt=url_quote>">c</a>
>

I don't know about you, but this looks messy....  Yes, It will work, but...


<a href="<dtml-var " 'adr_change_frm?f_id=%s&f_name=%s' % ( id, name ) " 
fmt=url_quote>c</a>

at least, to me, is a fair bit clearer....  However, the url_quote might not 
like & or ?... but I'm sure this is working in one of my sites currently.

> Ivan

Curtis.

_______________________________________________
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