W
W
WebDevils2017-07-05 14:04:42
PHP
WebDevils, 2017-07-05 14:04:42

How to connect javascript and php?

Good day dear programmers.
Help coder.

There are 10 entries on the wall.
Parameters are passed by reference, for example. https://sitename.com/id12 parameters https://sitename.com/id12/post/1 .
You need to somehow transfer the post id to the server for which the likes will be placed.

How can I pass parameters to the server.
How to use javascript, ajax, json, php at least the easiest example to get the point across.
If you have books or articles, please send them.
Read separately on JS and PHP. But I don't know how to connect

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-07-05
@WebDevils

0943e5a77cd97780ab9416d0ab3b.pnga19b993ae3bc1469c55b0a66b2f0.png
https://www.w3schools.com/js/js_json_php.asp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question