#Mobile: it can't capture the post data with form submit normally

1 messages · Page 1 of 1 (latest)

sweet dune
#

I'm working on NativePHP version 2.6
I tried with a form submits normally, but the request()->all() is empty
but when trying with ajax post, I got the good data
so I think NativePHP only allows Content-Type: application/json, right ?

warped rock
#

Someone else came up with a fix for this. Android does not allow post body content, there is a workaround somewhere…

tropic vault
#

Today I ran into an interesting issue with NativePHP when submitting forms from an Android WebView. Unlike normal browsers, WebView handles POST requests slightly differently, and $request->all() may return an empty array, even when the form has valid data. Here’s an example Blade view: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <ti...