M
M
Maxim Zolotoy2018-04-04 18:32:34
PHP
Maxim Zolotoy, 2018-04-04 18:32:34

Is it necessary to make a form if you submit via ajax?

I somehow got used to sending everything through ajax. And I just make inputs, and from them I collect, process data and then send it. And I score on the form. Tell me - is this bad or normal? in fact, the form is not required there at all

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Karavaev, 2018-04-04
@spacenear

No. It is enough just to compose the correct array of transmitted data.

P
Paul Denisevich, 2018-04-04
@deniamnet

You can simply send a request with javascript, collecting the data in JSON. There is no form here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question