S
S
santavits2018-06-09 12:23:32
PHP
santavits, 2018-06-09 12:23:32

How to process a request when a button is clicked?

There is a form
CKyNhs7Y.png

<form action="" method="POST">
<input type="number" name="start" value="'.$OrderStartCount.'">
<input type="submit" name="start" value="сохранить"></form>

sometimes you need to make changes in the 3rd field, these changes should be entered into the database in the order table in the OrderStartCount field

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Gorelov, 2018-06-09
@santavits

ajax
You collect all your data from the form, send it to the server, just for this you need ajax and already in another file, more precisely on the server and add it to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question