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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.