Hi, everyone,

I have such situation. I use generate( ) to get a model's list array
like:

Array
{
    [0] => yellow
    [1] => red
    [2] => black
}

And then I use
  <?php echo $html->selectTag('Fenlei/lanmu_id', $lanmus,'', null,
null, false);?>

It works fine.

It pass the id to the Fenlei/lanmu_id. But now I wanna get the yellow,
or red.
Instead of
<?php echo $html->selectTag('Fenlei/name', $lanmus,'', null, null,
false);?>

How can I make it?

And second situation, I have two  <?php echo $html->selectTag ( ) ?>,
They are related. Like when U choose color in the first drop-down list,
and the second one will display yellow, red, etc.

How can I make it? 

Thanks.


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to