what happens is that the form in myform2 displays but the id fields are
blank dropdown.
These fields are not autoincrement.
I submit and I can get the subject field displayed in myform3 but not id or
date fields.
controller
public function myform3()
{
if($this->request->is('post')) {
$this->set('tutorInput', $this->request->data);
}
}
myform2 view
echo $this->Form->create(array('action' => 'myform3'));
echo $this->Form->input('teacher_id'); //text
echo $this->Form->input('student_id'); //text
echo $this->Form->input('subject'); //text
echo $this->Form->input('sessiondate',
array('label' => 'Session'));
echo $this->Form->input('sessiontime',
array('label' => 'time'));
echo $this->Form->input('available');
echo $this->Form->end('submit');
myform3 view
echo '<td>'. $tutorInput['Tutorsession']['subject'].'</td>';
echo '<td>'. $tutorInput['Tutorsession']['sessiondate'].'</td>';
echo '<td>'. $tutorInput['Tutorsession']['student_id'].'</td>';
echo '<td>'. $tutorInput['Tutorsession']['sessiontime'].'</td>';
echo '</tr><br/>';
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.