[mod_python] using nested loop to display results in psp

anthony.barker at bmo.com anthony.barker at bmo.com
Fri Mar 19 10:30:19 EST 2004


psp script

=========================================
<html>
<%
names1 = (('Steve','Barker','34'),('John','Smith','27'))
for n in names1:
        for w in n:
%>
<%=w%>
<br>
<%
%>
<%
%>
</html>
===========================================

results:

Steve
Barker
34
John
Smith
27

What I would like to do is format it so that the <br> comes at the end of 
the first for loop. 

Steve Barker 34
John Smith 27

Any ideas?
Once that is working I will reformat it into a table. with <td> and <tr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20040319/d3f66970/attachment.html


More information about the Mod_python mailing list