Answer the question
In order to leave comments, you need to log in
How to get a button press with a set of different names via POST?
<form method="post">
<table>
<tbody>
<?php
$projects = project_view();
foreach ($projects as $project) {
?>
<tr>
<td><?php echo $project['id']; ?></td>
<td><?php echo $project['name']; ?></td>
<td><input type="submit" class="button" name="<?php echo $project['id'] ?>" value="Удалить"></td>
</tr>
<?php
}
?>
</tbody>
</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