Heres my problem, I have a bunch of variables sent from a form that takes on the look:
planet1
planet2
planet3
planet4
planet5
ect.
ect.
ect.
heres the IF statement that it is sent to:
I get the error: Parse error: parse error, unexpected T_VARIABLE, expecting ']' in www\hyps\allocation_map.php on line 24
so, my question to you is, how do I have the variable $a inside of the _POST variable?
planet1
planet2
planet3
planet4
planet5
ect.
ect.
ect.
heres the IF statement that it is sent to:
PHP:
IF ($_POST[Submit] == "Submit") {
for ($a = "1"; $a <= "380"; $a++) {
$planet = $_POST[planet$a];
}
}
I get the error: Parse error: parse error, unexpected T_VARIABLE, expecting ']' in www\hyps\allocation_map.php on line 24
so, my question to you is, how do I have the variable $a inside of the _POST variable?













