【发布时间】:2017-10-03 19:00:47
【问题描述】:
我使用 Advanced Webform for Podio 的源代码制作了一个网络表单。我有一个由引用的类别字段组成的列表。 When an item from the list is selected and the form is submitted, I want the text value from the referenced category field to be copied into the an other textfield. 提交后和将数据保存到 Podio 之前,我可以从 后数组。
if ($_POST){
// all the values are stored in $_POST array
然后我像这样从类别字段中获取值:
$value_from_selected_list = $_POST['uu center'];
在此之后,我将值复制到新的文本字段
$_POST['organisation'] = $value_from_selected_list;
// set all the values in the Podio app
$podioform->set_values($_POST,$_FILES);
$podioform->save();
$podioform = 'Kære '.$_POST['navn'].' Tak for din tilmelding';
}
我的问题是 $_POST['organisation'] 只返回一个 id 而不是文本值。
【问题讨论】: