Answer the question
In order to leave comments, you need to log in
Sending data to the site from the local area?
What we have:
1. There is a site
2. There is access to the site - admin panel, database, ftp It is
necessary to perform the following task:
I start OpenServer (as an example), I go to the local site, there are forms, I fill out the forms, before sending to js or php I do formatting articles (editing, amending, replacing, etc.), I click on the Send button, it all flies to the site (for example, immediately to the page for adding an article), forms are also there, they are filled with my data and the article is saved.
Do not ask why this whole hemorrhoids =)
Direct on the true path, what is needed for this? Links, examples, any information.
Thank you.
Answer the question
In order to leave comments, you need to log in
You do this:
1) on the localhost, write a php script
1.1) that will log in to your admin panel of your site on the Internet. Here use curl
1.2) send POST requests for editing, amendment, replacement, etc. Here, use curl
2) write an html page with forms on the localhost, on which, when you click the "send" button, the script from paragraph 1 will be called
3) if you wish, you can add checks to see if the entire operation was completed successfully. You will need ajax and parse the response from the admin panel of your site on the Internet.
Direct on the true path, what is needed for this?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question