capture string of input instead of array number?
Hi
I have an input that is fed from an array like;
$sales = $this->Lead->User->find('list',
array(
'fields' => 'username', 'position'));
and i access it like this in my view;
echo $form->input('sales', array
(
'label' => '',
'type' => 'select',
'options' => array($sales)));
but when the post data comes back it gives me the number of the array element that has been picked. How do I get it to post the string instead of an array number?
Thanks!
Asked by jameslivsey, on 19/7/10
0 Answers
Sorry, but there are no answers yet.
Your Answer
You can use Creole Wiki Syntax to format your text.
Tagged with
Rating
0
Viewed
83 times
Last Activity
on 19/7/10