Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Form select and selected value
philippel
March 2013
Hello,
Maybe someone already answer that question, if the is the case, please accept my apologises in advance.
I write the following code :
Form::select('country', 'none', array(
'none' => 'None',
'uk' => 'United Kingdom',
'nl' => 'Netherlands',
'us' => 'United States'
));
The 'none' value is well selected.
if I write 'uk' as selected value, 'none' is still selected.
Form::select('country', 'uk', array(
'none' => 'None',
'uk' => 'United Kingdom',
'nl' => 'Netherlands',
'us' => 'United States'
));
Is it a known bug or maybe someone could tell me what I'm doing wrong ?
Thank you very much for your help.
Philippe
Harro
March 2013
Works fine here. Tested it on 1.6/develop and 1.5/develop, which version are you on?
philippel
March 2013
Thanks for your prompt answer.
I'm using version 1.5.
I'll try to upgrade to the latest and I'll let you know.
Harro
March 2013
Accepted Answer
1.5 should work fine too, I've just confirmed that here.
philippel
March 2013
upgrading to the 1.5.3 seems to solve our issue.
Thanks anyway.
Philippe
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
March 2013
philippel
March 2013