samedi 2 juillet 2016

Is it posible to use CSS in this way in PHP?


I'm trying to use CSS within PHP code but it seems that I can't use CSS in the way that I'm trying. why?

<?php 

     $username = "Daved";
$password = "hello!";

 ?>

<html>
<head>
</head>

<body>

<?php

echo "<div style="font-size: 32px; background-color:#f00; color:#fff; width:200px;">And Operation</div>";
if($username == "Daved" && $password == "hello!"){

    echo "<p>The Password and UserName are correct!</p>";
}

else {
    echo "<p>You are not a member!</p>";
}

?>
</body>

</html>

Ok, It's a true way to use CSS like this, or I must to try using style in another way?


Aucun commentaire:

Enregistrer un commentaire