title: how can I modify a form dynamically and interactively in CakePHP?
body: <p>What I want to do is:</p>
  
  <ul>
  <li><p>create a form with one input (combo box)</p></li>
  <li><p>depending on the user's choice in the combo box, other inputs should be added to the form..</p></li>
  </ul>
  
  <p>for example, the form is for creating new users..</p>
  
  <p>the combo box will contain a list of user types..</p>
  
  <p>depending on the user type, fields are added to the form</p>
  
  <p>for a <code>student</code>, we need (name, email), for a <code>teacher</code>, we need (name, email, phone, certificate), etc..</p>
  
  <p>I already have the code for all the stuff..
  I just need guide lines for this specific task</p>
  
  <p>btw, i prefer to use jQuery for the javascript code..</p>
  
  <p>any help will be appreciated...</p>