我有一个带有多个选择字段的表单,并且我想使用此代码um_fetch_user(10)在其他页面中调用该字段; echo um_user('service'); ?>如果仅是写字段,此代码有效,我怎么称呼多重选择字段,即um-field-multiselect um-field-type_multiselect?
我该怎么解决?
谢谢
这是原始代码
<div class="um-field um-field-servicios um-field-multiselect um-field-type_multiselect" data-key="servicios"><div class="um-field-label"><label for="servicios-1145">Servicios</label><div class="um-clear"></div></div><div class="um-field-area"><div class="um-field-value">Alarmas, Arquitectos, Azoteas Verdes, Calderas</div></div></div>
我替代
<div class="um-field um-field-servicios um-field-multiselect um-field-type_multiselect" data-key="servicios"><div class="um-field-label"><label for="servicios-1145">Servicios</label><div class="um-clear"></div></div><div class="um-field-area"><div class="um-field-value"><?php
um_fetch_user(10);
echo um_user('servicios');
?></div></div></div>
结果是
<div class="um-field-area"><div class="um-field-value">Array</div></div>