I have a HTML table and asp code as below:
<table width="650" bgcolor="#ECECEC" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="16" bgcolor="#ECECEC"><img src="images/top_lefbb.gif" width="16" height="16"></td>
<td height="16" bgcolor="#ECECEC" background="images/top_midbb.gif"><img src="images/top_midbb.gif" width="16" height="16"></td>
<td width="24" bgcolor="#ECECEC"><img src="images/top_rigbb.gif" width="24" height="16"></td>
</tr>
<tr>
<td width="16" background="images/cen_lef.gif"><img src="images/cen_lef.gif" width="16" height="11"></td>
<td><Table width="100%" border="1" bordercolor="#666666" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#006699" bordercolor="#000000" border="1"><Td colspan="3" align="Left"><span class="style1"><strong>Fare Breakdown</strong></span></td>
</tr>
<tr>
<td width="43%" height="25" align="center" bordercolor="#ececec" border="0">
Contract Number: <b><%=tour_code%></b>
</td>
</tr>
<tr><td>Adult Net Net</td>
<tr><td>Markup</td>
<%
dim arrStr
dim theStr
theStr = xmldoc.documentelement.selectnodes("dataElementsMa ster").item(0).selectnodes("dataElementsIndiv").it em(2).selectnodes("miscellaneousRemarks").item(0). selectnodes("remarks").item(0).selectnodes("freete xt").item(0).text
arrStr = Split(theStr,",")
for i=0 to Ubound(arrStr)
arrStr2 = Split(arrStr(i),";")
next
Dim expr: Set expr = New RegExp
expr.Pattern = "[^:]*:([^,]*),?"
expr.Global = True
Dim matches
Set matches = expr.Execute(theStr)
If matches.Count > 10 Then
tour_code = Mid(Matches.Item(10).SubMatches(0), 2,2) & "<br />"
End If
Set matches = Nothing
Set expr = Nothing
Dim expression: Set expression = New RegExp
expression.Pattern = "[^:]*:([^,]*),?"
expression.Global = True
Dim match, first_matches
Set first_matches = expression.Execute(theStr)
For Each match In first_matches
response.write "<td>" & match.SubMatches(0) & "</td></tr>"
Next
Set first_matches = Nothing
Set expression = Nothing
%>
</table>
</td>
<td width="24" background="images/cen_rigBB.gif" bgcolor="#ECECEC"><img src="images/cen_rigBB.gif" width="24" height="11"></td>
</tr>
<tr bgcolor="#ECECEC">
<td width="16" height="16"><img src="images/bot_lefbb.gif" width="16" height="16"></td>
<td height="16" bgcolor="#ECECEC" background="images/bot_midbb.gif"><img src="images/bot_midbb.gif" width="16" height="16"></td>
<td width="24" height="16" bgcolor="#ECECEC"><img src="images/bot_rigbb.gif" width="24" height="16"></td>
</tr>
</table>
However, i am experiancing problems getting the <td> to show correctly.
How can I get Adult Net Net to sit beside 134
and Markup to side beside the 2nd value in the loop (which is 0)
example:
<tr>
<td>Adult Net Net</td>
<td>*value 1 from the loop in HERE*</td>
</tr>
<tr>
<td>Markup</td>
<td>*value 2 from the loop in HERE*</td>
</tr>
Thanks in advance.
Picco
www.crmpicco.co.uk