将验证语句echo"<script>alert('客户姓名不能为空!');location.href='booklogin3.php';</script>";改为:echo"<script>alert('客户姓名不能为空!');history.back();</script>";