Hi,
A static version of the dynamic page in question is available here [url]http://www.heath-eu.com/test
As you can see, this page has 15 rows, each with a drop down per day- it’s used for recording hours spent on projects.
Each of the select objects start like this:
<select name=’[i]day_[i]count[i]day[i]count[i]day
EG
[code=php]<select name=’thu_2′ id=’thu_2′ onChange=”altotal(‘thu’)” size=1>
<select name=’sat_7′ id=’sat_7′ onChange=”altotal(‘sat’)” size=1>
<select name=’mon_12′ id=’mon_12′ onChange=”altotal(‘mon’)” size=1>
The select statements are made in PHP by the following function
[code=php]function timedrop($dropname)
{
$day = substr($dropname, 0, 3);
$returner = “<select name=’$dropname’ id=’$dropname’ onChange=”altotal(‘$day’)” size=1>”;
$counter = 0;
while ($counter < ‘24.25’)
{
$returner .= “<option value=$counter>$counter</option>”;
$counter = $counter + 0.25;
}
$returner .= “</select>”;
return $returner;
}
Looking at the above link, only the first row and mon, tue, wed, thur of row 2 actually invoke the function, even though they’re all made from the same code.
Any reason why this should be?
Thanks in advance.