Team,
I am trying to create a loop that automatically creates a $_Post for variables that I have automatically created on a previous page.
for ($i = 1 ; $i <=$actual_number_of_stories ; $i++)
if($main_occupancy!=""){$$ifloor_area_occ1 = $_POST['$ifloor_area_occ1'];}
}
What I want to happen is the loop to create a variable that looks like:
1floor_area_occ1
2floor_area_occ1
3floor_area_occ1
I want to use the $i infront of the variable as a number infront of a standard variable "floor_area_occ1".
What am I doing wrong? Is it bad to automatically create $_Post statements? Should I just hard code them all in? It is probably 300 variables!
Thanks for any help!
-Markmax33