following is the code that i have used to show the values in selectbox . but how to show the value selected the below code is not working for me..
$currencyName = Array
(
[$] => US Dollar
[$] => rdcyhgv976
[€] => Euro
[£] => UK Pound
[¥] => Japanese yen
[a] => a
[b] => test
)
$selected=Array
(
[Currency] => €
)
<?php
echo $this->Form->input('SystemUser.Currency', array('type'=>'select','options'=> $currencyName, 'selected'=>$selected['Currency'], 'label' => false, 'div' => false, ));
?>
can anybody tell where I am wrong?