以下のエコーに css を適用するにはどうすればよいですか? UTFエンコーディングのヘッダーを追加する前に動作するようになりましたが、cssもエコーするようになったため、エコー結果は次のようになりました。<p align='center'>Good!!!</p>
<?php
header('Content-type: text/plain; charset=utf-8');
$answer = $_POST['1'];
if ($answer == "YES") {
echo 'Good!!!';
}
else {
echo 'Try Again!';
}
?>
訂正:
<?php
header('Content-type: text/html; charset=utf-8');
$answer = $_POST['1'];
if ($answer == "YES") {
echo "<p align='center'>Good!!!</p>";
}
else {
echo "<p align='center'>Try Again!</p>";
}
?>