Hi!
I want to make a GET form with a select field. If I write for example
$form->select('language', ...), then I will have an output like this:
<input type="hidden" name="language" value="" />
<select name="language[]" id="UserLanguage">
<option value="1">one</option>
<option value="2">two</option>
</select>
So, I selected the first value and submit the form. I will get
something like this in the address bar "http://example.com/controller/
action?language=&language%5B%5D=1"
However, I would like it to be like this: "http://example.com/
controller/action?language=1". Did anybody run into this issue? Until
now I have only one possible solution. That is not to use FormHelper
to create select control and to create it manually.
Thank you in advance!
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en