N
N
NEDODESIGNER2020-05-14 13:43:07
PHP
NEDODESIGNER, 2020-05-14 13:43:07

How to execute code on button click?

How to make it so that when the button is clicked, a record is taken from the server and written to a text file? It is necessary to bind this function to the button, I could make the file open, write and close, but since it is on the server, it is executed immediately. How to bind it to a button?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ediboba, 2020-05-15
@ediboba

onclick on the button, ajax action request...wait for the callback and show the result to the user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question