Have you even read the documentation at all? I would really recommend doing the blog before you take anything else on.
but $form->create('Note',array('action'=>'add')); $form->input('Note.title'); //or just $form->input('title'); $form->input('Note.body',array('rows'=>5,'cols'=>5)); $form->end('Save'); All with echos of course, and I was too lazy to add in the p tags, which can be utilized with before and after options, or just use the div option for possibly better styling with css. For more options hceck out here http://book.cakephp.org/view/189/Automagic-Form-Elements On Jul 23, 11:23 pm, aswamr <aswathi....@gmail.com> wrote: > Following is my add.thtml > > <form action="<?php echo $html->url("/notes/add")?>" method="post"> > <p>Title: > <?php echo $form->input('Note/title',array('size'=>'40'));?> > </p> > <p>Body: > <?php echo $form->textarea('Note/body') ?> > </p> > <p> > <?php echo $form->submit('save'); ?> > </p> > </form> > > Is this naming ok? > -- > View this message in > context:http://www.nabble.com/%24this-%3Edata-donot-retreive-any-value-tp2462... > Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---