I have an select option like this :
for($i = 1; $i <= 5; $i++)
{
$body .= <<<EOT
<form method="GET" action="page2.php">
<select class="multiSelect" size="7" name="opt[]" id="{$i}">
<option value="1">1</option>
<option value="2">2</option>
...
</select>
</form>
EOT;
}
In the second page page2.php
if (isset($_GET['opt']) && !empty($_GET['opt']))
{
foreach($_GET['opt'] as $opt)
$html .= "You have choice the option $opt in the !!!! $i !!!! select <br />
" ;
}
I want to get the id ($i) of each select in the page2.php ? Can You help me please ? Thanks