Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/sumari?tags=hoge,fuga から /sumari?tags=hoge&tags=fuga にする #27

Open
uehara1414 opened this issue Feb 11, 2017 · 2 comments
Open
Assignees

Comments

@uehara1414
Copy link
Member

確か、

<form action="/sumari" method="get">
  <div class="form-group">
        <input type="checkbox" name="tag" value="tag1" >
        <input type="checkbox" name="tag" value="tag2" >
        <input type="checkbox" name="tag" value="tag3" >
  </div>
  <input type="submit" class="btn-info" value="検索">
</form>

とすると、/sumari?tags=hoge&tags=fuga と展開されたはず。
こちらの形式の方が自然だと思うので、この形でデータのやり取りをしたい

@defaultcf
Copy link
Collaborator

nameに[]要るのでは
<input type="checkbox" name="tag[]" value="tag1">

@uehara1414
Copy link
Member Author

フロントエンド側が実装でき次第こちらも対応します

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants