Posted by rich on 09/10/06 01:30
This is the actual code.
<?php
$getnormwtA = getnormwt();
$numct = count($getnormwtA);
$tab = 16;
$wt = 'weight';
$typ = 'radio';
for ($i=0; $i<$numct; $i++){
echo "<input name=". $wt ." tabindex=". $tab ." value=".
$getnormwtA[$i]['bodywtid'] ." type=". $typ ."/>".
getnormwtA[$i]['bodyweightnorm'] .">";
$tab++;
}
?>
rich wrote:
> I am trying to setup a set of radio buttons from a table. I am getting
> the error:
> Parse error: parse error, unexpected '[', expecting ',' or ';' in
> /var/www/html/liberty/prototype1.php on line 251
> This is the snippet of code.
>
> <?php
> $getnormwtA = getnormwt();
> $numct = count($getnormwtA);
> $tab = 16;
> $wt = 'weight';
> $typ = 'radio';
> for ($i=0; $i<$numct; $i++){
> echo "<input name=". $wt ." tabindex=". $tab ." value=".
> $getnormwtA[$i]['bodywtid'] ." type=". $typ ."/>".
> getnormwtA[$i]['bodyweightnorm'] .">";
> $tab++;
> ?>
}
> ?>
>
> This is line 251
>
> echo "<input name=". $wt ." tabindex=". $tab ." value=".
> $getnormwtA[$i]['bodywtid'] ." type=". $typ ."/>".
> getnormwtA[$i]['bodyweightnorm'] .">";
>
> Any suggestions?
[Back to original message]
|