Skip to content

form checkbox #483

@drinkingcode

Description

@drinkingcode

form :

<form action="http://localhost:3000/" method="post">
	<p>
	  <input type="checkbox" checked="checked" name="pets" value="dog"><input type="checkbox" checked="checked" name="pets" value="cat"><input type="checkbox" name="pets" value="fish"></p>
	<p>
	  <input type="submit" value="提交"/>
	</p>
</form>

parsed result by formidable :

{ pets: 'cat' }

actually, the right answer should be as following:

{ pets: [ 'dog', 'cat' ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions