WWWForm - problem with $_POST in php

I setup a WWWForm in Unity:

var form = new WWWForm ();
form.AddField ( "key", "val" );
.............

Then, in php:

$fieldnames = array_keys($_POST);
$fieldvalues = array_values($_POST);

And then can not find out why $fieldnames[0] doesn’t return anything, while $fieldvalues[0] returns “val” as expected.
Would appreciate any help.

this is rather a PHP question. Has nothing to do with unity. Try

print_r($_POST);

Then you’ll know :slight_smile: otherwise post the results here