我有一个样本数据:
<form action="index.php" method="post">
<input type="text" name="name" value="3602s,5300,5300XM,6126,6131,6131 NFC,6133," />
<input type="submit" name="submit" value="submit" />
</form>
索引.php
if($_POST['name']){
echo $_POST['name'];
}
当我回显 $_POST['name'] 结果是:
我该如何解决这个错误?