I
I
ITlatip2019-11-04 12:56:50
JavaScript
ITlatip, 2019-11-04 12:56:50

How to send a form to the server where php is located using js?

How to send a form to the server where php is located using js locally and so that this data is saved in the database so that there is no need to throw the whole thing on the server or on the local server for testing so that I can use it in my cordova application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cython, 2019-11-04
@cython

You can just submit the form without pressing input with type="submit", via js: we find the form in the DOM, then via the .submit()submit method. You can also send a POST / GET request via ajax, where we substitute the parameters that we get from the form into the body / url.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question