TDs mixed into one big column in an HTML Email - outlook

I am using an html table in an html based email. The table displays correctly if the number of columns in the email are less than 68. But if the number of columns are more than that then the remaining columns are mixed into 68th column in an outlook email.
Any idea on what I might be doing wrong?
The HTML code is:
<table border=1>
<thead>
<tr>
<th colspan="3"> </th>
<th colspan="5">Header1</th>
<th colspan="5">Header2</th>
<th colspan="5">Header3</th>
<th colspan="5">Header4</th>
<th colspan="5">Header5</th>
<th colspan="5">Header6</th>
<th colspan="5">Header7</th>
<th colspan="5">Header8</th>
<th colspan="5">Header9</th>
<th colspan="5">Header10</th>
<th colspan="5">Header11</th>
<th colspan="5">Header12</th>
<th colspan="5">Header13</th>
<th colspan="5">Header14</th></tr></thead>
<tbody>
<tr class="headerRow">
<td colspan="3"> </td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
<td>SubCol1</td>
<td>SubCol2</td>
<td>SubCol3</td>
<td>SubCol4</td>
<td>SubCol5</td>
</tr>
<tr class="even">
<td>Channel</td>
<td>Grouping</td>
<td>Level</td>
<td colspan="70"> </td></tr>
<tr class="dataRow" >
<td>Header1</td>
<td>Positive</td>
<td>Different LF</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>2</td></tr></tbody></table>
The html appears in Chrome as:
The html appears in email as given below. Notice that columns under Header 13 and 14 are joined into one big column in the email version. Please note that when I reduce the number of column, it start appearing correctly in the email version. Do html tables in emails have any columns limit?

Two issues I see with this:
No email client will safely or appropriately render that many cells. It's way too long and it's wider than the majority of emails clients can handle in their preview windows.
I don't think tables are being used in the most appropriate way to display your information. Whether it be changing the layout you're using to be more vertical, using another format to display this information or just not using tables at all and going for another simplified approach.
I'll leave point 2 up to you to think over but here is what I'd do to simplify the structure of your tables and potentially avoid the issues you're seeing.
<table border=1>
<tbody>
<tr>
<td valign="top">
<table border=1>
<tr>
<th colspan="3"> </th>
</tr>
<tr><td colspan="3"> </td></tr>
<tr class="even">
<td>Channel</td>
<td>Grouping</td>
<td>Level</td>
</tr>
<tr class="even">
<td>Header1</td>
<td>Positive</td>
<td>Different LF</td>
</tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header1</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header2</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header3</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header4</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header5</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header6</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header7</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header8</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header9</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header10</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header11</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header12</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header13</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td></tr>
</table>
</td>
<td valign="top">
<table border=1>
<tr>
<th colspan="5">Header14</th>
</tr>
<tr><td>SubCol1</td><td>SubCol2</td><td>SubCol3</td><td>SubCol4</td><td>SubCol5</td></tr>
<tr><td colspan="5"> </td></tr>
<tr><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td></tr>
</table>
</td>
</tr>
</tbody>
</table

Related

Why Firefox incorrectly displays the table with colspan and rowspan?

The table is displayed well in Chrome and Opera, and not at all in Firefox ... How can I fix it?
Screenshot
Code: https://jsfiddle.net/Hamsterman/6zth1mjv/
<table>
<tr>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
</tr>
<tr></tr>
<tr>
<td colspan="2" rowspan="2"></td>
<td colspan="3" rowspan="3"></td>
<td colspan="3" rowspan="3"></td>
<td colspan="2" rowspan="2"></td>
</tr>
<tr></tr>
<tr>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
</tr>
<tr>
<td colspan="3" rowspan="3"></td>
<td colspan="3" rowspan="3"></td>
</tr>
<tr>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
</tr>
<tr></tr>
<tr>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
<td colspan="2" rowspan="2"></td>
</tr>
<tr></tr>
</table>

how to avoid double borders in HTML graphviz

I have the following simple
Node in a graph:
digraph "graph.svg" {
graph [bgcolor="#333333" fontcolor=white fontname=Helvetica fontsize=16 label="Title" rankdir=TB]
0 [label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="2" BGCOLOR="#006699">
<TR>
<TD COLSPAN="2">Node Titel</TD>
</TR>
<TR>
<TD COLSPAN="2">Sieve</TD>
</TR>
<TR>
<TD CELLPADDING="0">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#006699">
<TR>
<TD BORDER="1">in 1</TD>
</TR>
<TR>
<TD BORDER="1">in 2</TD>
</TR>
</TABLE>
</TD>
<TD CELLPADDING="0">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#006699">
<TR>
<TD BORDER="1">out 1</TD>
</TR>
<TR>
<TD BORDER="1">out 2</TD>
</TR>
<TR>
<TD BORDER="1">out 3</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>> shape=plaintext]
}
Which produces this output:
How can I make the borders align such that no double borders appear anywhere between the nested tables?
I managed to fiddle around with the CELLSPADING=-1
but I don't think that is the way to go?
I cannot use the COLSPAN option because the inputs and outputs ports are variable in size, that's why I solved this with a nested table for both input and output cells.
you were near there
digraph "graph.svg" {
graph [bgcolor="#333333" fontcolor=white fontname=Helvetica fontsize=16 label="Title" rankdir=TB]
0 [label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="2" BGCOLOR="#006699">
<TR>
<TD COLSPAN="2">Node Titel</TD>
</TR>
<TR>
<TD COLSPAN="2">Sieve</TD>
</TR>
<TR>
<TD CELLPADDING="0" BORDER="0">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#006699">
<TR>
<TD BORDER="1">in 1</TD>
</TR>
<TR>
<TD BORDER="1">in 2</TD>
</TR>
</TABLE>
</TD>
<TD CELLPADDING="0" BORDER="0">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#006699">
<TR>
<TD BORDER="1">out 1</TD>
</TR>
<TR>
<TD BORDER="1">out 2</TD>
</TR>
<TR>
<TD BORDER="1">out 3</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>> shape=plaintext]
}

How to create a two column email newsletter

I am trying to create a two column email flyer but I'm having trouble with the coding as Outlook hates CSS.
I'm using tables to keep it as simple as possible but I want two separate tables on the left and the right so I can add data into it as I wish.
I tried using float left and right on the two tables but Outlook ignores this style.
I know the two grey tables at the bottom are each in their own separate "holder" tables but this is so I can duplicate the grey "data" tables for when I add new articles.
<table class="all" width="auto" height="auto" border="0" cellspacing="0"><tr><td height="504">
<table width="750" height="140" border="0" cellspacing="0">
<tr>
<td width="200" valign="bottom" bgcolor="#E6E6E6"> </td>
<td width="345" align="center" valign="bottom" bgcolor="#E6E6E6"> </td>
<td width="152" align="center" valign="bottom" bgcolor="#E6E6E6"> </td>
<td width="45" align="center" valign="bottom" bgcolor="#E6E6E6"> </td>
</tr>
<tr>
<td width="200" valign="bottom" bgcolor="#E6E6E6"> </td>
<td align="center" valign="bottom" bgcolor="#E6E6E6"><font color="#111111" face="Arial Narrow" size="+2">DECEMBER NEWSLETTER</font></td>
<td width="152" align="center" valign="bottom" bgcolor="#E6E6E6"><font size="2"><strong>#4 - <span class="orange">04.12.13</span></strong></font></td>
<td width="45" align="center" valign="bottom" bgcolor="#E6E6E6"> </td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75" height="50" bgcolor="#E6E6E6" scope="row"> </td>
<td width="600" rowspan="2" scope="row"><img src="http://placehold.it/600x200"/></td>
<td width="75" bgcolor="#E6E6E6" scope="row"> </td>
</tr>
<tr>
<td width="75" height="81" scope="row"> </td>
<td scope="row"> </td>
</tr>
</table>
<table class="holder" width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" scope="row">
<table class="inlinetableleft" width="360">
<tr>
<td width="371" align="left">
<!------------LEFT COLUMN------------------>
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<th height="103" colspan="4" align="left" valign="middle" bgcolor="#CCCCCC" scope="row"> </th>
</tr>
</table>
<!--------------LEFT COLUMN END------------->
</td>
</tr>
</table>
<table class="inlinetableright" width="360">
<tr>
<td align="left">
<!------------RIGHT COLUMN------------------>
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="106" align="left" bgcolor="#CCCCCC" scope="row"> </td>
</tr>
</table>
<!-----------RIGHT COLUMN END-------------->
</td></tr>
</table>
</td>
</tr>
</table>
Here is a fiddle of my newsletter so far, it's the bottom two grey tables that I want to be side by side.
Fiddle
For HTML emails, nested tables are your friend :)
JSFiddle
Note: the border around the table is just to show you where the tables are.
<table border="0" width="600" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="2">
header content here
</td>
</tr>
<tr>
<td width="300">
<table border="0" width="300" cellpadding="1" cellspacing="0" align="left">
<tr>
<td>Left Content</td>
</tr>
</table>
</td>
<td width="300">
<table border="0" width="300" cellpadding="1" cellspacing="0" align="left">
<tr>
<td>Right content</td>
</tr>
</table>
</td>
</tr>
</table>

HTML Agility Pack xpath expression assistance

I have html like the following:
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td height="20" colspan="2">
</td>
</tr>
<tr>
<td height="20" colspan="2" class="fontDestaque2NegritoHome">
MATRÍCULA: PPAAG
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
</td>
<td align="right" valign="middle" class="tx_bd">
</td>
</tr>
<tr>
<td width="35%" align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Fabricante:</span>
</div>
</td>
<td width="59%" align="right" valign="middle" class="tx_bd">
<div align="left">
CESSNA AIRCRAFT</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Modelo:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
T206H</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Número de Série:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
T20608735</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left" class="tx_bold">
Tipo ICAO :
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
C206</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Tipo de Habilitação para Pilotos:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
MNTE</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Classe da Aeronave:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
POUSO CONVECIONAL 1 MOTOR CONVENCIONAL</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Peso Máximo de Decolagem:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
1633 - Kg</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Número Máximo de Passageiros:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
005</div>
</td>
</tr>
<tr>
<td colspan="2" align="right" valign="middle" class="tx_bd">
<div align="left">
</div>
</td>
</tr>
<tr>
<td colspan="2" align="right" valign="middle" background="../images/bgPontilhado.gif"
class="tx_bd">
<div align="left">
<img src="../images/bgPontilhado.gif" width="4" height="1"></div>
</td>
</tr>
<tr>
<td colspan="2" align="right" valign="middle" class="tx_bd">
<div align="left">
</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Categoria de Registro:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
PRIVADA SERVICO AEREO PRIVADOS</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Número dos Certificados (CM - CA)</span>:
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
19040</div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Situação no RAB:</span><span class="stop_litle">
</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="fontRed">ARRENDAMENTO OPERACIONAL/ALIENACAO FIDUCIARIA</span></div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Data da Compra/Transferência:</span>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
</div>
</td>
</tr>
<tr>
<td colspan="2" align="right" valign="middle" class="tx_bd">
<div align="left">
</div>
</td>
</tr>
<tr>
<td colspan="2" align="right" valign="middle" background="../images/bgPontilhado.gif"
class="tx_bd">
<div align="left">
<img src="../images/bgPontilhado.gif" width="4" height="1"></div>
</td>
</tr>
<tr>
<td colspan="2" align="right" valign="middle" class="tx_bd">
<div align="left">
</div>
</td>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Data de Validade do CA: </span>
</div>
</td>
<td width="3%" align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bd">21/05/16</span></div>
</td>
</tr>
<tr>
<td align="right" valign="middle" class="tx_bd">
<div align="left" class="tx_bold">
<div align="left">
Data de Validade da IAM:
</div>
</div>
</td>
<td align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bd">110513</span></div>
</td>
</tr>
<tr>
<td height="18" align="right" valign="middle" class="tx_bd">
<div align="left">
<span class="tx_bold">Situação de Aeronavegabilidade:</span>
</div>
</td>
<td height="18" align="right" valign="middle" class="tx_bd">
<div align="left">
Normal</div>
</td>
</tr>
<tr>
<td height="18" colspan="2" align="right" valign="middle" class="tx_bd">
<div align="left" class="tx_bold">
Motivo(s):
</div>
</td>
</tr>
<tr>
<td height="18" colspan="2" align="right" valign="middle" class="tx_bd">
<div align="left">
<blockquote>
<p>
<span class="tx_bold"></span>
</p>
</blockquote>
</div>
</td>
</tr>
<tr>
<td height="18" colspan="2" align="left" valign="middle" class="tx_bd">
Consulta realizada em: 16/8/2012 15:52:45<br>
</td>
</tr>
I want to grab the following text:
Cessna Aircraft
T206H
T20608735
C206
MNTE
POUSO CONVECIONAL 1 MOTOR CONVENCIONAL
1633 - Kg
005
PRIVADA SERVICO AEREO PRIVADOS
19040
ARRENDAMENTO OPERACIONAL/ALIENACAO FIDUCIARIA
21/05/16
110513
Normal
Some of the div's just contain the text I need. Other div's contain a span that contains the text I need. How would I construct the xpath for this?
Use:
//tr/td[#align='right' and #valign='middle' and #class='tx_bd']
/div[#align='left 'and not(*)]
/text()

reCAPTCHA keep saying incorrect-captcha-sol

I have this form
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<tr>
<td width="32%" valign="top"> <strong class="main_title">Select Category: </strong></td>
<td width="68%" valign="top" class=""><? $qu="SELECT `id`,`name` FROM `linkvideos_category` WHERE `status` = '1'"; $rs=$Q($qu); ?>
<select name="category" class="blacktext" >
<option>Choose Category</option>
<? while($dis=$F($rs)) { ?>
<option value="<?=$dis['id']?>"> <?=$dis['name'];?></option>
<? } ?>
</select></td>
</tr>
<tr>
<td colspan="2" valign="top" class=""> </td>
</tr>
<tr>
<td valign="top"> <strong class="main_title">Upload Image: </strong></td>
<td valign="top" class=""><input type="file" name="imagefile" /> </td>
</tr>
<tr>
<td colspan="2" valign="top" class=""> </td>
</tr>
<tr>
<td valign="top"> <strong class="main_title"> Your Link : </strong></td>
<td valign="top" class=""><input name="link" type="text" size="50" /></td>
</tr>
<tr>
<td colspan="2" valign="top" class=""> </td>
</tr>
<tr>
<td valign="top"> <strong class="main_title"> Link Title : </strong></td>
<td valign="top" class=""><input name="linkname" type="text" size="50" /></td>
</tr>
<tr>
<td colspan="2" valign="top" class=""> </td>
</tr>
<tr>
<td valign="top"> <strong class="main_title">Description:</strong></td>
<td valign="top"><label>
<textarea name="desc" cols="40" rows="10"></textarea>
</label></td>
</tr>
<tr>
<td valign="top"> <strong class="main_title">Security Code:</strong></td>
<td valign="top">
<? if ($error==3) { ?>
<font color="red">Invalid Code Entered</font>
<?}?>
<?php
require_once('captcha/recaptchalib.php');
echo recaptcha_get_html($public_key);
?></td>
</tr>
<tr>
<td colspan="2" valign="top" class=""> </td>
</tr>
<tr>
<td colspan="2" valign="top" class=""> </td>
</tr>
<tr>
<td colspan="2" align="center" valign="top" class=""><input type="submit" name="Submit" value="Submit" class="btns" onclick="javascript:return check();" /></td>
</tr>
</form>
and i'm verifying the captcha with this
$resp = recaptcha_check_answer ($private_key,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
$error = 3;
echo"<script>window.location='submit_linkvideo.php?error=3';</script>";
}
and every time it's telling me the captchas invalid and saying incorrect-captcha-sol, am I missing something? I've tested it and the recaptcha values arn't being submitted.
Fixed it by ending a table before the form then starting the table again once inside the form.

Resources