<?php
session_start();
header("Content-type:text/html;charset=utf-8") ;
$link = mysqli_connect('localhost','123654lgh','etjyr2bm','123654lgh');
if (!$link) {
die( "連線失敗:".mysqli_connect_error());
}
$sql = "從登入選擇*";
$result = mysqli_query($link, $sql );
$rows = mysqli_fetch_array($result);
$username = $_POST['username'];
$password %3
echo "<script>alert('資料插入失敗');window.location.href='zhuce.html'";
}else{
# echo "< script>alert('註冊成功');window.location.href='yonghu.html'</script>";
}
##}?> ;
這是客戶端的提示,你頁面上用表單提交了,然後你刷新就會有的提示,不是的程式碼報錯問題