Disable Fieldset around an hidden form element

Hi,

i want to disable the fieldset around the hidden cakephp generated input field.

i reviewed http://book.cakephp.org/view/183/Creating-Forms but it's unlike to my output.


<?php echo $form->create('User', array('action' => 'login', 'class' => 'innerForm', 'id' => 'wizard')); ?>

-----------------

<form id="wizard" class="innerForm" action="/meetr0.5/" method="post">
<fieldset style="display: none;">
<input type="hidden" value="POST" name="_method"/>
</fieldset>
</form>

Asked by nerdbeere, on 4/1/10

1 Answer

To my knowledge this cannot be done. It's hard-coded into the cake core. You could take the output and parse it out however.


$form_html = $form->create(....);

// Parse code here
$form_html = strip_tags($form_html, '<form><input>');

echo $form_html;

Answered by davidwuon 4/1/10

<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Tagged with

Rating

0

Viewed

603 times

Last Activity

on 4/1/10