Hei, try to get this to go. It's a Checkboxarea and I will it userfriendly. The values in 'lordag' are there. But if I try this:
is the part that dosn't work. If I take my code and read an given array insted of form->data['lordag'], it works fine...😑
Gives me no result. Is there someone who can help me??
$form->data['input_name']
is the part that dosn't work. If I take my code and read an given array insted of form->data['lordag'], it works fine...😑
$lordag_array = array(
'choice 1' => 'Kantine skole',
'choice 2' => 'Kantine H.H',
'choice 3' => 'Brannvakt',
'choice 4' => 'Løypevakt',
'choice 5' => 'Parkering',
'choice 6' => 'Premieutdeling/Sosialarrangement',
'choice 7' => 'Innkvartering',
'choice 8' => 'Sekreteriat'
);
;
$lordag_array_long = array();
foreach($form->data['lordag'] AS $choice)
{
$lordag_array_long[] = $lordag_array[$choice];
echo $choice.'<br>';
}
Gives me no result. Is there someone who can help me??