Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Form select and selected value
  • 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
  • Works fine here. Tested it on 1.6/develop and 1.5/develop, which version are you on?
  • 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.
  • HarroHarro
    Accepted Answer
    1.5 should work fine too, I've just confirmed that here.
  • upgrading to the 1.5.3 seems to solve our issue.
    Thanks anyway.
    Philippe

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion