投稿ボタンをクリックして入力/テキストエリアを空のままにしておきたいと思っています。私はそれが現在の灰色の境界線を赤に変えたいと思っています。投稿後に空の入力枠を変更する
私の現在のコード:
if(empty($_POST['email']) ||
empty($_POST['name']) ||
empty($_POST['message']) ||
empty($_POST['pref-job']) ||
empty($_POST['username']))
{
echo "<style type='text/css'>
input {
border: thin solid #e51923;
}
textarea {
border: thin solid #e51923;
}
</style>";
}