HTML example:
current(array_keys($_POST)) should give you what you are looking for. Haven't tested though.