I'm making a website and I would like it to have a voting system, but I did not want it to be with stars but rather with coffee cups (I picked up this site: font-awesome). But I can not leave it with the cupcakes, it's always a star.
index.php
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="estilo.css">
<script src="https://use.fontawesome.com/eb2dfeaa2c.js"></script></head><body><h1>Avalie</h1><?phpif(isset($_SESSION['msg'])){echo$_SESSION['msg']."<br><br>";
unset($_SESSION['msg']);
}
?>
<form method="POST" action="processa.php" enctype="multipart/form-data">
<div class="estrelas">
<input type="radio" id="vazio" name="estrela" value="" checked>
<label for="estrela_um" ><i class="fa fa-coffee" aria-hidden="true"></i></label>
<input type="radio" id="estrela_um" name="estrela" value="1">
<label for="estrela_dois" ><i class="fa fa-coffee" aria-hidden="true"></i></label>
<input type="radio" id="estrela_dois" name="estrela" value="2">
<label for="estrela_tres"><i class="fa fa-coffee" aria-hidden="true"></i></label>
<input type="radio" id="estrela_tres" name="estrela" value="3">
<label for="estrela_quatro"><i class="fa fa-coffee" aria-hidden="true"></i></label>
<input type="radio" id="estrela_quatro" name="estrela" value="4">
<label for="estrela_cinco"><i class="fa fa-coffee" aria-hidden="true"></i></label>
<input type="radio" id="estrela_cinco" name="estrela" value="5"><br><br>
<input type="submit" value="Cadastrar"> <label for="estrela_um" ><i class="fa fa-coffee" aria-hidden="true"></i></label>
</div>
</form>
</body>
</html>
style.css
.estrelas input[type=radio]{
display: none;
}.estrelas label i.fa:before{
content: '\f005';
color: #FC0;
}.estrelas input[type=radio]:checked ~ label i.fa:before{
color: #CCC;
}