[Zope] How to pass a list of 2 values each to dtml
Philipp Dunkel
phidu@gmx.net
Sat, 22 Apr 2000 18:20:08 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0015_01BFAC87.6420D920
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hia Zopistas, I have a form that prints out links with checkboxes.
I want to pass the checked links to a dtml-method.
the form looks like
<input type=3D"checkbox" name=3D"urllist:list" value=3D" [url goes here] =
|| [linkname goes here]"><a href ..... [and here goes the link itself =
</a>
this is printed out for every link.
Now I want to call a method=20
foo(url, name)
how can I split the passed strings in urllist into 2 parts and assign =
them to variables in dtml I can pass to foo ?
or is there a way to pass a tuple or list in the form directly?
TIA
Philipp Dunkel
------=_NextPart_000_0015_01BFAC87.6420D920
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hia Zopistas, I have a form that prints =
out links=20
with checkboxes.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I want to pass the checked links to a=20
dtml-method.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the form looks like</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><input type=3D"checkbox" =
name=3D"urllist:list"=20
value=3D" [url goes here] || [linkname goes here]"><a href ..... =
[and here=20
goes the link itself </a></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>this is printed out for every =
link.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Now I want to call a method =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> foo(url, name)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>how can I split the passed strings in =
urllist into=20
2 parts and assign them to variables in dtml I can pass to foo =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>or is there a way to pass a tuple or =
list in the=20
form directly?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>TIA</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Philipp =
Dunkel</FONT></DIV></BODY></HTML>
------=_NextPart_000_0015_01BFAC87.6420D920--