B
B
BoriHagen2020-04-26 20:31:57
PHP
BoriHagen, 2020-04-26 20:31:57

Why is $_POST empty?

There is a simple code:

<body>
  <form action="action.php" method="POST">
    <span style="display: none;" name="vendorCode010">получил</span>
    <input type="submit">
  </form>
</body>


action.php :

<?
  echo $_POST['vendorCode010'];
?>


But the page is empty, which means the form does not enter the value into the POST array

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question