I have 17 varibles. I am doing this for EVERY one of them:
<? if ($row['mschool'] == "1") { ?>
<tr>
<td align="right" valign="top"><strong>Middle School:</strong></td>
<td align="left" valign="top"><textarea name="Cmschool" cols="100" rows="3"><? print "$row[Cmschool]"; ?></textarea></td>
</tr>
<? } ?>
That is ALOT of code for 17 of them. Yes it is simple to copy and paste, but it makes more sense to use an array. I'm just not sure how to do it.
I assume I list all of the variables:
$pre, $kinder, $1, $2, $3, $4, $5, $6, $7, $mschool, $hschool, $college etc....
How to I get get it do repeat the code to everyone? does that make sense?