Is it possible in PHP to get both the data and the input name when posting a form?
if i got a form
<input name="a_field" value="a value" />
<input name="b_field" value="b value" />
On the page the form points to I want to catch all $_POST vars to an array like
$fields['fieldname'] = 'a_field';
$fields['fieldvalue'] = 'a value';
.... and so on
I know how to add the values to an array, but if I don't know the field names, is it possible to get them?
as when u do
u get both the filename and the value.
Hope my question is clear, please tell me and I try explain harder