Forms within the DataTables

Forms within the DataTables

firefedotfirefedot Posts: 2Questions: 0Answers: 0

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

  • firefedotfirefedot Posts: 2Questions: 0Answers: 0
    edited January 2015

    Issue has been resolved)
    Just ordered form outside php


    if ($data['revoked']==0){?> <td><input type='submit' value='revoke' onClick='revoke_vpn("<?php echo $namev ?>")' name='button_3' class='button_3'/> <input type="submit" value="del"name="button_4" class="button_4" disabled/></td> <?php }else{ ?> <td><input type="submit" value="revoke"name="button_3" class="button_3" disabled/> <input type="submit" value="del" onClick='deleted_user("<?php echo $namev ?>")' name="button_4" class="button_4"/></td> <?php

    and processed through all js
    )

This discussion has been closed.