N
N
Nadya19962017-10-28 13:42:57
PHP
Nadya1996, 2017-10-28 13:42:57

How to get data from db on remote site using php?

On an external site there is a form for entering data. The form has one field for entering a number and one button. The request is sent to the database.
Will it be possible to get a response from the database from an external site if the request to the form is made by a POST request $content = curl(' ya.ru ','username=alex&password=qwerty')?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alams Stoyne, 2017-10-28
@alams_stoyne

If, during the normal operation of the site, sending data after writing to the database returns something:
That is, you will get what is displayed after submitting the form.
*** If this kind of action is not conceived by the system, then this is a security hole.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question