ankhmor Posted August 31, 2009 Share Posted August 31, 2009 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". any help? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 31, 2009 Share Posted August 31, 2009 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. Quote Link to comment Share on other sites More sharing options...
ankhmor Posted September 1, 2009 Author Share Posted September 1, 2009 thx. its just the phpdesigner puts it there. and for the longest time ever i couldnt figure out y my script wasnt working. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 1, 2009 Share Posted September 1, 2009 It sounds like the developers at phpdesigner need to actually test the code that it generates to make sure it works under php. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.