I'm currently trying to send an array as the value of an option in a select but I cannot access the data after the form is sent.
echo '<select id="domainResults_domaines" name="domainResults_domaines">';
foreach($domainsFound as $domain){
echo '<option value="'.$domain.'">'.$domain['domaine'].'</option>';
}
echo '</select>';
The $domain
array contains 2 values and I want to be able to access both of those after sending the form. Is there a way to send the array as the value or is there another way to pass 2 variables in a single option?
Thanks for the help.