In My database my application form data not storing <p><strong>I developed one form.it will not work properly.here is my code all db,model,controller classes</strong></p> <p>here is database code.</p> <p><strong>database:</strong></p> <pre><code>CREATE TABLE users ( id INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , username VARCHAR( 40 ) NOT NULL , password VARCHAR( 40 ) NOT NULL , email VARCHAR( 255 ) NOT NULL , first_name VARCHAR( 40 ) NOT NULL , last_name VARCHAR( 40 ) NOT NULL ) </code></pre> <p><strong>model class:</strong></p> <pre><code>&lt;?php class User extends AppModel{ var $name='User'; } ?&gt; </code></pre> <p><strong>view class:</strong></p> <pre><code>&lt;html&gt; &lt;form action="../users/register" method="post"&gt; &lt;p&gt;Please fill out the form below to register an account.&lt;/p&gt; &lt;label&gt;Username:&lt;/label&gt;&lt;input name="username" size="40" /&gt; &lt;label&gt;Password:&lt;/label&gt;&lt;input type="password" name="password" size="40"/&gt; &lt;label&gt;Email Address:&lt;/label&gt;&lt;input name="email" size="40" maxlength="255" /&gt; &lt;label&gt;First Name:&lt;/label&gt;&lt;input name="first_name" size="40" /&gt; &lt;label&gt;Last Name:&lt;/label&gt;&lt;input name="last_name" size="40" /&gt; &lt;input type="submit" value="register" /&gt; &lt;/form&gt; &lt;/html&gt; </code></pre> <p><strong>controller class:</strong></p> <pre><code>&lt;?php class UsersController extends AppController{ function register(){ if (!empty($this-&gt;params['form'])){ if($this-&gt;User-&gt;save($this-&gt;params['form'])){ $this-&gt;flash('Registration Successful','/users/register'); } else{ $this-&gt;flash('Not succeeded','/users/register'); } } } } ?&gt; </code></pre> <p>please resolve my problem</p>