What's the code in the action when submitted? The values will remain until you o something and then redirect. eg. save the comment, dd a message to the flash message thing and then redirect to the page.
it's the redirect bit that clears the form. On Dec 7, 7:38 am, "andrei.b" <[email protected]> wrote: > hello, > I have a comment view for a blog witch looks like this: > > <div class="comments form"> > <?php echo $form->create('Comment');?> > <fieldset> > <legend><?php __('Add Comment');?></legend> > <?php > echo $form->input('name', array('value' => '')); > echo $form->input('content', array('value' => '')); > echo $form->input('post_id'); > ?> > </fieldset> > <?php echo $form->end('Submit');?> > </div> > > When I press submit in name and content input fields I still see the > same values that I entered instead of viewing nothing. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
