$name='name';if(isset($_POST[$name])){echo "存在";}else{echo "不存在";}//以上方法是判断是否存在name索引
if (isset($_POST['name'])){echo '存在';}