if ( isset($_POST['lname'] )&& !empty( $_POST['lname'] ) ) {
echo '
} else {
echo '
}
?>
The syntax should be correct however when i enter the data into my form the echo statement displays the variable name $lname in the green class not the data entered.
Did i forget quotes somewhere or to escape somewhere?
.result {
color: #FFF;
display: block;
font-size: 36px;
margin-top: 1px;
margin-before: 5px;
margin-bottom: 0px;
margin-start: 0;
margin-end: 0;
text-align:center;
font-weight: bold; }
.green {
color: #C9FF1F;
display: block;
font-size: 40px;
margin-top: 1px;
margin-before: 5px;
margin-bottom: 0px;
margin-start: 0;
margin-end: 0;
text-align: center;
font-weight: bold;
}