Home >Backend Development >PHP Tutorial >Why Doesn't POST Support `enctype='text/plain'` While GET Does?
Incompatibility of method="post" and enctype="text/plain"
When attempting to use the following form:
<form method="post" enctype="text/plain" action="proc.php">
you may encounter difficulties in successfully transmitting form data to the "proc.php" file. What causes this problem, and why is it impossible to utilize "text/plain" encoding with the "post" method while it is possible with the "get" method?
Explanation:
PHP's inability to handle "text/plain" encoding with the "post" method is the root of this issue (and it's not a bug):
https://bugs.php.net/bug.php?id=33741
For the "enctype" attribute in the "