Apologies - my previous post did not format correctly, so I repeat.

When constructing a form element I use this... 

        $this->addElement('hidden', 'productId', array(
            'decorators' => array(array('ViewHelper'),
                                        array('HtmlTag', array('tag' => 'p')),
                                        ),
        ));

which formats as html (precisely) this way...

<p>
<input type="hidden" name="productId" value="11" id="productId" /></p>


There are two problems with this. First, many input ids with "productId" 
produces a validation 
error. Second, mark-up format is wrong. What must I do to produce this (with 
value added to 
id)...

    <p>
    <input type="hidden" name="productId" value="11" id="productId" />
    </p>

TIA...

Mike 

Reply via email to