I am running a query through php in a mysql database. In my result set, I repeat the following table:
$resultString = '<table>'; $resultString .= '<tr>'; $resultString .= '<th>Index</th>'; $resultString .= '<th>Title</th>'; $resultString .= '<th>File</th>'; $resultString .= '<th>Template File</th>'; $resultString .= '<th>Pretty URL</th>'; $resultString .= '<th>Parent</th>'; $resultString .= '<th></th>'; $resultString .= '</tr>'; while($data = mysql_fetch_assoc($results)){ $resultString .= '<form class="myForm">' ."\n"; $resultString .= '<tr>' ."\n"; $resultString .= '<input type="hidden" name="index" value="' . $data['index'] . '">' ."\n"; $resultString .= '<input type="hidden" name="title" value="' . $data['title'] . '">' ."\n"; $resultString .= '<input type="hidden" name="file_name" value="' . $data['file_name'] . '">' ."\n"; $resultString .= '<input type="hidden" name="template_file" value="' . $data['template_file'] . '">' ."\n"; $resultString .= '<input type="hidden" name="child_of" value="' . $data['child_of'] . '">' ."\n"; $resultString .= '<input type="hidden" name="pretty_url" value="' . $data['pretty_url'] . '">' ."\n"; $resultString .= '<td class="indexTd">' . $data['index'] . '</td>' ."\n"; $resultString .= '<td>' . $data['title'] . '</td>' ."\n"; $resultString .= '<td>' . $data['file_name'] . '</td>' ."\n"; $resultString .= '<td>' . $data['template_file'] . '</td>' ."\n"; $resultString .= '<td>' . $data['pretty_url'] . '</td>' ."\n"; $resultString .= '<td>' . $this->get_parent_select_list($data['child_of'],$data['index']) . '</td>' ."\n"; $resultString .= '<td class="buttonTd"><input type="button" class="deletePageButton" value="X" onclick="submit_form(this,\'deletePage\')"></td>' ."\n"; $resultString .= '</tr>' ."\n"; $resultString .= '</form>' ."\n"; } $resultString .= '</table>';
The table looks great, the only problem is that my form doesn't work at all ... browsing in FireBug I see this:
The form closes because all my input tags can fill it. I tried to put tags inside "<td>" instead of "<tr>" to no avail ....
thoughts?
When you open a tag in another tag, the tag that you open will be closed when it is closed. So:
<p><form></p> <p></form></p>
Will (or should) result in:
<p><form></form></p> <p></p>
, .
, tr, td, thead, tbody, toot th, , w3c-
TD.
HTML, .
egads! html! <td> . <tr>! <td>.
<td>
<tr>
Source: https://habr.com/ru/post/1764211/More articles:Prevent .net Serial Port Crash on Disabling FTDI USB Device - vb.netAccess to non-static enumeration values โโfrom static methods - c #building kernel kernels - linuxConvert DD / MM / YYYY HH: MM: SS to MySQL TIMESTAMP - pythonUsing ZipArchive Zip file in iphone mail application? - iphoneMarking 3D connections based on Euclidean distances - optimizationSelf-assessment metadata using validation application block - validationhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1764214/log4j-redirection-to-desktop-application-in-swing&usg=ALkJrhj72p_RgKQM8EL9JBzCsv2qNWq2OwAndroid: no more than 1 nine patches at a time? - androidNo lines in MSDB.dbo.sysmail_faileditems - sqlAll Articles