Обработка кнопки на PHP

^C~/site $ php -S localhost:8080 index.php
[Wed Jun 12 07:54:20 2024] PHP 8.3.7 Development Server (http://localhost:8080) started
[Wed Jun 12 07:54:26 2024] 127.0.0.1:48484 Accepted
[Wed Jun 12 07:54:26 2024] 127.0.0.1:48484 Closing
[Wed Jun 12 07:54:26 2024] 127.0.0.1:48488 Accepted
[Wed Jun 12 07:54:26 2024] 127.0.0.1:48488 Closing
[Wed Jun 12 07:54:26 2024] 127.0.0.1:48492 Accepted
[Wed Jun 12 07:54:26 2024] 127.0.0.1:48492 Closing
[Wed Jun 12 07:54:27 2024] 127.0.0.1:48496 Accepted
[Wed Jun 12 07:54:27 2024] 127.0.0.1:48496 Closing
[Wed Jun 12 07:54:27 2024] 127.0.0.1:48500 Accepted
[Wed Jun 12 07:54:27 2024] 127.0.0.1:48500 Closing
[Wed Jun 12 07:54:27 2024] 127.0.0.1:48504 Accepted
[Wed Jun 12 07:54:27 2024] 127.0.0.1:48504 Closing
[Wed Jun 12 07:54:44 2024] 127.0.0.1:48508 Accepted
[Wed Jun 12 07:54:44 2024] 127.0.0.1:48508 Closing
[Wed Jun 12 07:54:44 2024] 127.0.0.1:48512 Accepted
[Wed Jun 12 07:54:44 2024] 127.0.0.1:48512 Closing
[Wed Jun 12 07:54:44 2024] 127.0.0.1:48516 Accepted
[Wed Jun 12 07:54:44 2024] 127.0.0.1:48516 Closing
[Wed Jun 12 07:54:45 2024] 127.0.0.1:48520 Accepted
[Wed Jun 12 07:54:45 2024] 127.0.0.1:48520 Closing
[Wed Jun 12 07:54:45 2024] 127.0.0.1:48524 Accepted
[Wed Jun 12 07:54:45 2024] 127.0.0.1:48524 Closing
[Wed Jun 12 07:54:45 2024] 127.0.0.1:48528 Accepted
[Wed Jun 12 07:54:45 2024] 127.0.0.1:48528 Closing

index.php:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Button Interaction Example</title>
</head>
<body>
    <form action="process.php" method="post">
        <button type="submit" name="myButton" value="clicked">Click Me</button>
    </form>
</body>
</html>

php/start.php:

<?php
if(isset($_POST['start'])) {
  echo 123 . PHP_EOL;
}

Почему скрипт не выводит в консоль 123? Или онр выводиться в консоль браузера?


Ответы (0 шт):