Assuming there are 5 inputs in web form
Better way to do in html:
Then in server:
$the_same = new array(); foreach($_POST['the_same'] as $data) // or $_GET if you prefer $the_same[] = $data;
In this way no variable will be overwrite.