Prova così
echo"<INPUT type='hidden' name='CodiceP' value='".$riga['Cod_Pizza']."'>";
Ho aggiunto gli apici '' nel value, anche se sarebbe buona norma usare le virgolette come delimitari del markup html (name="" < si name='' < no)