Jump to content

[SOLVED] $_POST and enctype="text/plain"


ankhmor

Recommended Posts

I'm puzzeled as to why this is happening.

I have a form with enctype="text/plain". And then I have a php code that takes whatever is in that form and echo s it.

Everything works fine as long as the form method is set to get, but once the method is set to post the php script just doesnt seem to recieve the field values.

The only solution to that is removing enctype="text/plain".

 

:shrug: any help?

Link to comment
https://forums.phpfreaks.com/topic/172599-solved-_post-and-enctypetextplain/
Share on other sites

As far as php is concerned, enctype="text/plain" is not a valid mime type that you can send using POST. There is no real reason to use that enctype in any form. If for some reason you are desperate to use that enctype you can access the POST data using $HTTP_RAW_POST_DATA.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.