There is a certain php script. Variables in it are set by the POST method. Is it possible to send a POST with values ​​to this script from another php or html script? THOSE. The php script opens, it processes the received information, and, depending on the result, the machine opens another php script and sends data to it via POST. GET do not want to use for certain reasons.

  • It is not necessary to build a cask and it is worth rewriting the script. - Naumov
  • html script ???? - MaximPro
  • File php, performs registration on the site. In theory, when entering data on the page, this script is run, processes the information and, if successful, redirects to the main page, and in case of failure, redirects back to the registration page and sends an error code through POST (login is busy, passwords do not match, etc.) ). - Puro
  • one
    use language construction include do not need to invent bikes - MaximPro

1 answer 1

  1. "Specific Script". Which one For coffee grounds guess?

  2. POST request can be sent via CURL . To know where, how and why. To do this, you can parse the form on the requested page, and find out the action , then create a request and send it to the handler.

  3. If under certain conditions you need to process another script, use include or require . For a logical sample of the processing results and the subsequent execution of the desired script, you can use, for example, the switch () construction

  • "specific script" - I know its name and location, it just doesn't matter here. And thanks for the answer. CURL is more suitable for me. - Puro