Forms within the DataTables
Forms within the DataTables
Good afternoon, night. morning, evening, noon)))
I have a table in a form that makes the action with the cell.
Added DataTables and I will not work with the shipping form.
That is, work or DataTables or form inside the table)
What to do?
That's part of the code in the table to the form:
while($data = mysql_fetch_array($qr_result)){
echo '<form method="post" enctype="multipart/form-data" accept-charset="uft-8">';
echo '<tr>';
echo '<td><select name="uname">
<option value="'. $data['name_vpn'] .'">'. $data['name_vpn'] .'</option>
</select></td>';
if ($data['zim_revoked']==0){
echo '<td><input type="submit" value="block" formaction="zim_revoked.php" class="button_1"/>'
. '<input type="submit" value="active" formaction="zim_revoked.php" class="button_2" disabled/></td>';
}else{
echo '<td><input type="submit" value="block" formaction="zim_revoked.php" class="button_1" disabled/>'
. '<input type="submit" value="active" formaction="zim_revoked.php" class="button_2"/></td>';
}
echo '<td>' . $data['zim_date_revoked'] . '</td>';
echo '<td>' . $data['zim_why_revoked'] . '</td>';
//...
echo '</form>';
Again, the form works fine until I connect datatables
When you click on the form, after the connection datatables, nothing happens
What could be the problem?
In the class? Tried to change them, did not help
Thanks in advance and prsti for my english)
Replies
Issue has been resolved)
Just ordered form outside php
and processed through all js
)