title: CakePHP passing parameters to action
body: <p>Hi im kinda new in cakephp and having a lot of trouble adjusting.. Here's my biggest problem .. </p>
  
  <p>Im trying to pass a parameter to an action, it does load, but when my script goes from the controller to the view, and goes back to the controller again, its gone.</p>
  
  <p>CONTROLLER CODE</p>
  
  <pre><code> function add($mac = 0)
  {
  
  
  if(isset($this-&gt;params['form']['medico'])) 
  {
  
   $temp= $this-&gt;Person-&gt;find('first', array('conditions' =&gt; array('smartphones_MAC' =&gt; $mac)));
   $id= $temp['Person']['id'];
  
  $this-&gt;Union-&gt;set('events_id', $id+1);
  $this-&gt;Union-&gt;set('people_id', $id);
  $this-&gt;Union-&gt;save();
  
  }
  </code></pre>
  
  <p>VIEW CODE  (This is a menu, i only have one button right now)</p>
  
  <pre><code> &lt;fieldset&gt;
  
   &lt;legend&gt;SELECCIONE SU ALERTA&lt;/legend&gt;
  
   &lt;?php 
  
    echo $form-&gt;create('Event'); 
  
    echo $form-&gt;submit('EMERGENCIA MEDICA',array('name'=&gt;'medico')); 
  
    echo $form-&gt;end();
  
    ?&gt; 
  
    &lt;/fieldset&gt;
  </code></pre>