Answer the question
In order to leave comments, you need to log in
How to do an INSERT on a button?
There is a database, it has 2 tables: users and new-user (for example)
in a separate page, I display all users by their login (the login field from the users table)
<tr>
<td>$myrow[login]</td>
<td>ещё что нибудь</td>
<td>кнопка insert (при нажатии вставляет поле login и "ещё что нибудь" в таблицу new-user)</td>
</tr>
Answer the question
In order to leave comments, you need to log in
a couple of little code, well, yes, the meaning is approximately clear ...
Hint: input of the form
<input type='text' name='username[]' value='somename'>
inserted multiple times, will be interpreted on the server side as an array, which can be iterated over and get the entire list of your 100 rows. If the form is using the post method, then the server will have$_POST['username'][0] = 'somename';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question