I think that I have an easy questions, but I'm unable to find what I'm looking wrong!!
I've an array where there are some strings:
$tipus_membre = array("lider","colider","vetera","membre");
and this strings are defined:
define("LIDER","Leader");
define("COLIDER","Co-leader");
define("VETERA","Elder");
define("MEMBRE","Member");
I'm trying to print in a form but i'm unable to get it. With this first option i get only the name "lider", "colider"....:
<select name="cla_tipus" required>
<?php
for($i=0;$i<count($tipus_clan);$i++){
echo '<option value="'.$i.'">'.$tipus_membre[$i].'</option>';
}
?>
</select>
and if i put:
constant($tipus_clan[$i]);
I get nothing.
(Edited the $var)