<tr> <td> <?php $form->label('planid', "Link To Plan: "); ?> </td> <td> <?php $totalPlans = count($plans->id); if ($totalPlans) { $form->attributes = "size='5'"; $form->startSelect('planid', 'planid', true); for ($i = 0; $i < $totalPlans; $i++) { $form->addSelectOption($plans->id[$i], $plans->name[$i]); } $form->endSelect(); } else { echo "There are no visible plans in the database.\n"; } ?> </td> </tr> <tr> <td> <?php $form->label('description', "Description: "); ?> </td> <td> <?php $form->attributes = "maxlength='250' size='35'";