Hi all!
Ive got a for statement creating a table each with a row of 4 text fields, and one check box.
Each field has _X after it, according to which row. e.g. void_1, void_2 and so on.
void is there so that I can ignor that one if its checked.
So far I have:
for($z=1;$z<=$galsize;$z++) {
$voider = $void . $z ;
if($voider!=1) {
$sect = '$sector' . '$z' ;
$unit = '$unit' . '$z' ;
$pds = '$pds' . '$z' ;
$other = '$other_' . '$z';
fwrite($open, "<br><a name=\"$z\"></a>");
fwrite($open, "<strong>Planet #$z - </strong>");
fwrite($open, "<a href=\"#\"><strong>Back to Top</strong></a><br><br>");
fwrite($open, "$sect");
fwrite($open, "<br><br>");
fwrite($open, "$unit");
fwrite($open, "$<br><br>");
fwrite($open, "$pds");
fwrite($open, "$<br><br>");
fwrite($open, "<i>$other</i><br><br>");
fwrite($open, "----------------------------");
}
}
This returns something like:
Planet #2 - Back to Top
$sector_$z
$unit_$z$
$pds_$z$
$other_$z
how can I get it so it actually posts what the user enters into the field, as a variable $pds_2 not $pds_$z$
Im really stuck!
Thanks!
Ben