I have this PHP/HTML code:
<table>
<tr>
<td>Region:</td>
<td>
<select style="width:200px" name="region">
<?php for( $i=0;$i<sizeof($regions);$i++) { ?>
<option value=<?php echo($regions[$i]) ;?>><?php echo( $regions[$i]) ;?></option>
<?php }?>
</select>
</td>
</tr>
The problem is the value displayed is ( Array ). I tried to replace echo by printf and sprintf but I have the same result. But if I replaced it with print_r I now have this information (Array ([0] => Alaska[region] => Alaska).
I need to know what I'm doing wrong and how can I fix it?