php post忽略google自动完成表单中手动键入的值

php post忽略google自动完成表单中手动键入的值,php,post,autocomplete,Php,Post,Autocomplete,我有一个编辑表单中的基本位置自动完成字段 <input type="text" name="street" id="test" placeholder="Locatie" class="form-control" data-class="places" value="<?php echo $userinfo->volunteer_location; ?>"/> <input type="hidden" name="locality" id="locality"

我有一个编辑表单中的基本位置自动完成字段

<input type="text" name="street" id="test" placeholder="Locatie" class="form-control" data-class="places" value="<?php echo $userinfo->volunteer_location; ?>"/>
<input type="hidden" name="locality" id="locality" placeholder="City" class="form-control" />
<input type="hidden" name="administrative_area_level_1" id="administrative_area_level_1" placeholder="Provincie"/>
<input type="hidden" name="administrative_area_level_2" id="administrative_area_level_2" placeholder="Stad" />
<input type="hidden" name="latitude" id="latitude" placeholder="latitude" />
<input type="hidden" name="longitude" id="longitude" placeholder="longitude" />
在场景1中,此行将包含自动完成的值 在场景2中,此post值不存在或为空

我如何确保人们在选择自动完成的值时也可以在自由文本中给出,而不是只工作

提前感谢

尝试将输入属性的“自动完成”设置为“关闭”

您的
属性是“street”,而不是“test”。大概,您应该始终使用
$this->input->post('street')
$userdata->location = $this->input->post('test');