Welcome Guest, Not a member yet? Register   Sign In
help with multiple input?
#3

[eluser]newbie boy[/eluser]
i got the solution:

in the model this must go:

Code:
// Check to see if there is more than one car
if ( count($data['cars']) > 0 ) {

for($i = 0; $i < count($data['cars']); ++$i) {
$this->CarModel[$i]->car = $data['cars'][$i];
                    
        }
                
    }
// If only one car then
else {
$this->CarModel[0]->car     = $data['cars'];
}


Messages In This Thread
help with multiple input? - by El Forum - 10-20-2008, 04:13 AM
help with multiple input? - by El Forum - 10-20-2008, 05:41 AM
help with multiple input? - by El Forum - 10-23-2008, 02:44 AM
help with multiple input? - by El Forum - 10-23-2008, 05:58 AM
help with multiple input? - by El Forum - 10-23-2008, 08:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB