Boa tarde, preciso desenvolver um simulador , como o do site http://www.cipavinil.com.br/simulador.htm  Consigo pegar a cor e o percentual, mas não sei como preencher as celulas com as cores.   <html> <head> </head>  <body> <form id="form1" name="form1" method="post" action="">   <p>     <label for="campo1">Azul</label>     <input id="campo1"  type="text" name="percentual[azul]"  size=5" /> |      <label for="campo2">Verde</label>     <input id="campo2"  type="text" name="percentual[verde]"  size="5" />       |        <label for="campo3">Amarelo</label>     <input id="campo3"  type="text" name="percentual[amarelo]"  size="5" />     <input type="submit" name="ok" id="ok" value="Enviar" />   </p> </form>   <?php  if(isset($_POST['percentual])){ 	 		if(is_array($_POST['percentual'])){ 			 			foreach($_POST['percentual'] as $cor =>$indice){ 	 			 		 			}}}    ?>  </body>    </html>