Hello Friends,

Your file should be like that :



index.ctp
==========
<?php echo $this->Form->create('User', array('action' => 'index'));?>
   <fieldset>
     <legend>Enter Your Name</legend>
       <?php echo $this->Form->input('name'); ?>
   </fieldset>
<?php echo $this->Form->end('Go');?>

UsersController.php
==================
<?php
class UsersController extends AppController {
    var $name = 'Users';
    var $helpers = array('Form','Html');
    var $uses = array('User');

    function index() {
         if (!empty($this->data)) {
         $this->autoRender = false;
         $this->layout = NULL;
                //data posted
                pr($this->data);

            }
         }
}
?>


-- 
Thanks & Regards

Chetan Patel

-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to