2009年9月16日星期三

[fw-mvc] howto: generate url with separators &, ? and =

I've a html form that enables users to search in a database.
The http://www.w3.org/TR/html401/interact/forms.html#h-17.13 W3C recommends
to use a GET method for this scenario. Posting a get form leads invariably
to a URI with a query part (e.g. ?key[]=a&key[]=b&foo=1)

My question: How do I create the query part of a URI programmatically from
an array in that form? I need this to generate hyperlinks.

I can use the URL view helper, but this will create, following the example,
something like this

key/a/key/b/foo/1

This is inconsisten with how GET-forms work. How can I pull out a real query
part?
--
View this message in context: http://www.nabble.com/howto%3A-generate-url-with-separators--%2C---and-%3D-tp25472630p25472630.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: