Answer the question
In order to leave comments, you need to log in
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
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>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question