sorry, but it still does not work...
(you were correct about the missing $ but that was only if there was a GET which there was not)
Search found 5 matches
- Mon Jan 09, 2012 10:09 pm
- Forum: Tutorials
- Topic: API - $_POST is null when using multiform/form-data
- Replies: 9
- Views: 1675
- Mon Jan 09, 2012 9:59 pm
- Forum: Tutorials
- Topic: API - $_POST is null when using multiform/form-data
- Replies: 9
- Views: 1675
Re: API - $_POST is null when using multiform/form-data
$boundary = md5(microtime(true)); $post = ''; foreach($fs_request as $name => $value){ $post .= "--{$boundary}\r\n"; $post .= "Content-Disposition: form-data; name= \"{$name}\"\r\n\r\n"; $post .= "{$value}\r\n"; } $post .= "--{$boundary}--\r\n"; if(...
- Mon Jan 09, 2012 9:40 pm
- Forum: Tutorials
- Topic: API - $_POST is null when using multiform/form-data
- Replies: 9
- Views: 1675
Re: API - $_POST is null when using multiform/form-data
true. but I am using apache 2.2.15 PHP 5.3.3 and I am not using a form to submit the info (I am using a raw http request as per the API tutorial- where he too did not create post_max_size field). In addition, I tested this out with a tiny post file and it still did not work...
- Mon Jan 09, 2012 9:13 pm
- Forum: Tutorials
- Topic: API - $_POST is null when using multiform/form-data
- Replies: 9
- Views: 1675
Re: API - $_POST is null when using multiform/form-data
this is my own private cloud server (for which I have full control over). I can use $_POST everywhere on this server except when accessing this multipart/form-data content type used in the tutorial. It seems that everyone is having this issue- except for this tutorial here...
- Mon Jan 09, 2012 7:34 pm
- Forum: Tutorials
- Topic: API - $_POST is null when using multiform/form-data
- Replies: 9
- Views: 1675
API - $_POST is null when using multiform/form-data
In the API tutorial multiform/form-data is used as the content-type. Then, the tutorial uses $_POST[''] to get the posts. This never seems to work for me as all my $_POST[' '] turn out null. A quick google search shows that many other people have this same issue (see,for example, https://bugs.php.ne...