I have a problem where I parse variables in a HTML select statement.
on my form file I have each select statement as below:
<td>From : <select name="mon_from_hour">
<?php
foreach ($hour as $val_hr){
echo "<option>";
echo $val_hr;
echo "</option>";
}
?>
</select>
:
<select name="mon_from_minute">
<?php
foreach ($minute as $val_mn){
echo "<option>";
echo $val_mn;
echo "</option>";
}
?>
</select>
</td>
The problem is, once I submit the form these select/option variables do not display their string results.
The process is working for one set of select/option sets which call their data from a database, but this example is calling their data from an array of strings as below :
$hour = array("","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24");
$minute = array("","00","30");
Is there something about arrays that is causing this issue?:huh: