Hi all,
In my rosters table I have a course_id, that points to the primary key
in courses table, and I have a student_id, that likewise points to
primary key in students, table...
Right now, in my baked of views/rosters/add.ctp:
<div class="rosters form">
<?php echo $form->create('Roster');?>
<fieldset>
<legend><?php __('Add Roster');?></legend>
<?php
echo $form->input('course_id');
echo $form->input('student_id');
?>
</fieldset>
<?php echo $form->end('Submit');?>
Right now, those render as listboxes with the id's as what you choose.
In courses table there is a course_name field... How do I get it to
*SHOW* the course_name, but select the course_id??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---