tags:

views:

222

answers:

1

Hi,

   <?php
   echo $form->create('Form',array('action'=>'submit'));?>

  <table>

                       <?php 
        if($r['Attribute']['type']=='Text')
        {
      echo $form->input($r['Attribute']['label'], array('type'=>'text','style' => 'width:' . $r['Attribute']['size'] . 'px'));
           }
         else if($r['Attribute']['type']=='Textarea')
          {
           echo $form->input($r['Attribute']['label'], array('type'=>'textarea','style' => 'height:' . $r['Attribute']['size'] . 'px'));
           }
          ?>

                </tr><br>

  </table>
<?php echo $form->end('submit');?>

I am having form created as above with the fields by $r['Attribute']['label']

 This for is viewed by the form_id.

What i need is with this form_id and with the fields by $r['Attribute']['label'], if i enter in those fields i want to save the value correspondingly in my table Result.value.

My results table has id,form_id,attribute_id,label,value

Please suggest me...

A: 

I am posting in the answer section because the comments under the question have become a discussion on the merits of the FormHelper, which I don't think is relevant to Aruna's question.

Aruna - I'm not sure I fully understand what you're trying to do. Could you try to explain the question more clearly or could someone edit the question for clarity?

Thanks

Darren Newton