prepare($sql);$smt->execute();$row=$smt->fetch();if($row){ $_SESSION['name ']= $row['名稱']; echo""; echo"<script>location='index.php'</script>"; }else{ echo""; //echo"<script>location='denglu.php'</script>";}?>