我寫了一個顯示紅色錯誤的php代碼。但不知何故,這似乎並沒有解決。這是我的代碼:回顯字體顏色輸出
<?php
...
if(!$name || !$email || !$contact || !$itemid){
//if not display an error message
echo "<span style="color: red;" /><center>Fields marked with <strong>( * ƥ</strong> are mandatory!</center></span>";
}else{...
?>
您可能會看到,如果問題你看看b頁面的HTML頁面的源代碼eing輸出。這意味着作爲疑難解答提示。 – codewaggle
這應該給一個錯誤開始。修理它。 – Gordon
你是對的,不需要看源代碼,如果有錯誤報告,它就在頁面上。看起來像這樣:'解析錯誤:語法錯誤,意外的T_STRING,期待','或';''這可以通過告訴你問題來幫助解決問題。 – codewaggle