O
O
Oleg Galimov2017-12-23 12:37:13
PHP
Oleg Galimov, 2017-12-23 12:37:13

After pressing the delete button, so that a table with a line appears here?

Good time of the day.
Please help, I'm new to php.
After pressing the delete button, I need the data of that deleted line (all values) to appear below. I don't understand how to do it.
Here is a screenshot
5a3e20d6e4720615857577.png
here is the table output code

echo "<form><table border=1><tr><td>N</td><td><input type='checkbox'/></td><td>ID</td><td>Хост</td><td>Тип записи</td><td>Приоритет</td><td>Вес</td>
<td>Порт</td><td>Значение</td><td>Алгоритм</td><td>Приведение типа</td><td>Комментарий</td><td>Действие</td></tr>";
foreach($getrrrecord->data as $key =>$record)
{
echo"<tr id='$record->id' ><td>".($key+1)."</td>
<td><input type='checkbox'/></td>
<td>".$record->id."</td>
<td>".$record->owner."</td>
<td>".$record->type_record."</td>
<td>".$record->pri."</td>
<td>".$record->weight."</td>
<td>".$record->port."</td>
<td>".$record->data."</td>
<td>".$record->sshfp_algorithm."</td>
<td>".$record->sshfp_type."</td>
<td>".$record->info."</td>
<td><input type='submit' name='submit_addform' value='Удалить'></td></tr>";
}
echo '</table></form>';

Tell me it's very urgent!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Toropov, 2017-12-24
@nefone

Use AJAX.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question