I am having a problem with the following piece of code:
$submit = $_POST['submit'];
$answer = "8";
$input = strip_tags($_POST['input']);
if ($submit){
if ($input==$answer){
echo "Correct";
}
else
echo "Wrong";
CSS:
.wrong {
margin-top: 5px;
padding: 5px;
background-color:#F00;
border: 2px solid #666;
width:auto;
color: #000000;
}
All I want is to put a little bit of CSS in with an PHP echo command. If the user gets the answer wrong a red box should appear with "Wrong" in the middle.
I have already tried
echo <div class="wrong">"Wrong"</div>;
but that did not work.