How to get the name of the form in the php handler?

I need to get the name of the form handler mail.php.What am I doing wrong?
<form action="../../mail.php" method="POST" name="kname">

$kname = $_POST['kname'];
March 19th 20 at 08:25
1 answer
March 19th 20 at 08:27
No way. Of course.

Thomas sends only those fields that are transmitted through input.
The tag <form> is not an input, and then specify the name attribute is meaningless.
If you want to kake any additional value, it is necessary to pass through a hidden input field.
Thank you very much! Finally found - Ernestina.Gutmann41 commented on March 19th 20 at 08:30

Find more questions by tags HTMLPHP