Skip to content

$form::getHttpData() doesn't show keys for arrays from HTML #1433

@pavelkouril

Description

@pavelkouril

Stupid enter key. :(

Anyways ... when you have indexed inputs in HTML and load them in form processing via getHttpData($type, 'items[]'), the returned list of elements is indexed with numbers and not with keys it had in HTML representantion.

Since $_POST is indexed via those keys, I'd expect this function to return the same stuff as $_POST, just sanitized (as it was written in that one Nette Forms article), NOT completly different array.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions