Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • do you really need $_GET? I mean $_POST is way better, in terms of security, cleansyness etc.. Commented Sep 11, 2018 at 15:34
  • if you have access to a backend language (e.g. php) you can use implode('|', $foo) and it will output ?foo=val1|val2|val3 Commented Sep 11, 2018 at 15:35
  • The form in question sends filter-params for a search. The resulting URL should be shareable. Also, I am using Symfony and try to only use what they already implemented (i.e don't mess with the $_GET-var myself) Commented Sep 11, 2018 at 15:35
  • There's nothing wrong with that URL. It is shareable as is. Commented Sep 11, 2018 at 15:36
  • 1
    wait - if it's a search - why is foo an array? surely you're searching by unique params rather than multiple ones that fits one param? Commented Sep 11, 2018 at 15:37