I'm not sure how to make this work. We have to build a CSV file using PHP. The forms used to create the CSV file are the subject of this problem. The program deals with make / model / year.page 1 asks the question: 'how many makes do you want'page 2 asks the question: 'how many models per make'This is what I have so far:index.php:\[code\]<form action="import_page_1.php" method="post">Number of Makes: <input type="text" name="num_makes" value="http://stackoverflow.com/questions/15621676/Enter a number"></input><hr><input type="submit" value="http://stackoverflow.com/questions/15621676/Next.." />import_page_1.php:<form action="import_page_2.php" method="post" /><?php$num_makes = (int) $_POST['num_makes'];$count = 0;$make_array = array(); for ($i = 0; $i < $num_makes; $i++) { $count++; echo "Make $count: <input type='text' name='$make_array['make'] /><br />";}?><hr> <input type="submit" value="http://stackoverflow.com/questions/15621676/Next.." /></form>\[/code\]I don't know how to make $make_array populate each thing the user enters. I can't just specity ['make'] like I did in my example because then all I get is the last result.So maybe I'm going about this the wrong way or maybe this is some easy solution to create a form based on the number of fields given previously and then create an array based on makes such as 'Toyota' or whatever. My test case was 1: Nissan, 2: Toyota. On the next page all I got out of my $_POST array was the last one entered "Toyota" I assume because it is overwriting each 'make' in the for loop.