I am trying to combine the set variable $jstep_optionx
with $count
where x
is the number within the count as $jstep_option.$count
, however the only output is $count as the number.
Example as per below:
<?
$jstep_choice = 'Choice';
$jstep_options = '2';
$jstep_option1 = 'Option1';
$jstep_option2 = 'Option2';
?>
<? if ( $jstep_type == 'Choice' ) { $count = 1; $options = $jstep_options; ?>
<table class='choice'>
<tr>
<? while ( $count <= $options ) : $choice = $jstep_option.$count; print "<td align=center><a href=?choice=".$count.">".$choice."</a></td>"; $count++; endwhile; ?>
</tr>
</table>
<? } ?>
Output is: a TD with 1 and a TD with 2
The output should be: a TD with Option11 and a TD with Option22
Cheers.