开发者

Why does my submit button not work in php?

开发者 https://www.devze.com 2022-12-11 18:42 出处:网络
I\'ve created a php script which ends with <?php $form->end(\'Submit\'); ?>. But why does the button submit can\'t function and can\'t be clicked?

I've created a php script which ends with <?php $form->end('Submit'); ?>. But why does the button submit can't function and can't be clicked?

Someone can help me solve this problem?

<div class="campaigns 开发者_如何学Goform">
<?php $form->create('Campaign'); ?>

    </fieldset>
<?php echo $form->end('Submit'); ?>
</div>


You're never actually starting the form tag, so the submit button is not inside a form, hence not clickable. You need to echo this line:

$form->create('Campaign');    ->    echo $form->create('Campaign');
0

精彩评论

暂无评论...
验证码 换一张
取 消