Multiple Page select in one form
Permalink 1 user found helpful
hi, all
i met a problem that can not process multiple page select in one form,only the last select is working properly. all others return 0 to the table. anybody have any idea about this. share with me.
here is the code I use.
<div class="ccm-block-field-group">
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$form = Loader::helper('form/page_selector');
?>
</div>
<div class="ccm-block-field-group">
<h2><?php echo t('Link 1')?></h2>
<?php
print $form->selectPage('link3',$link1);
?>
</div>
<div class="ccm-block-field-group">
<h2><?php echo t('Link 2')?></h2>
<?php
print $form->selectPage('link2',$link2);
?>
</div>
<div class="ccm-block-field-group">
<h2><?php echo t('Link 3')?></h2>
<?php
print $form->selectPage('link3',$link3);
?>
</div>
i met a problem that can not process multiple page select in one form,only the last select is working properly. all others return 0 to the table. anybody have any idea about this. share with me.
here is the code I use.
<div class="ccm-block-field-group">
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$form = Loader::helper('form/page_selector');
?>
</div>
<div class="ccm-block-field-group">
<h2><?php echo t('Link 1')?></h2>
<?php
print $form->selectPage('link3',$link1);
?>
</div>
<div class="ccm-block-field-group">
<h2><?php echo t('Link 2')?></h2>
<?php
print $form->selectPage('link2',$link2);
?>
</div>
<div class="ccm-block-field-group">
<h2><?php echo t('Link 3')?></h2>
<?php
print $form->selectPage('link3',$link3);
?>
</div>