greens85
11-03-2009, 02:20 PM
Hi,
I have a form which contains a list (allowing multiple values to be selected)
i.e.
<select name="categories" multiple="multiple" size="7">
<option value="Business Manager/Bursar">Business Manager/Bursar</option>
<option value="Cover Supervisor">Cover Supervisor</option>
<option value="Education Recruitment Consultant">Education Recruitment Consultant</option>
<option value="Middle School">Middle School</option>
<option value="Nursery Nurse">Nursery Nurse</option>
<option value="Playworker">Playworker</option>
<option value="Primary Head Teacher">Primary Head Teacher</option>
<option value="Primary Teacher">Primary Teacher</option>
<option value="School Support Staff">School Support Staff</option>
<option value="Secondary Head Teacher">Secondary Head Teacher</option>
<option value="Secondary Teacher">Secondary Teacher</option>
<option value="SEN Teacher">SEN Teacher</option>
<option value="Teaching Assistant & HLTA">Teaching Assistant & HLTA</option>
<option value="TESOL/TEFL/EAL">TESOL/TEFL/EAL</option>
</select>
However it will only allow me to place one value in the database (last selected)...
I have tried the following PHP but to no avail...
if (is_array($categories)) {
$categories = implode (", " , $categories);
}
I have also searched these forums as I expected to be a common problem, but found no suitable results.
Can anyone advise or kick me in the right direction.
Many Thanks,
Greens85
I have a form which contains a list (allowing multiple values to be selected)
i.e.
<select name="categories" multiple="multiple" size="7">
<option value="Business Manager/Bursar">Business Manager/Bursar</option>
<option value="Cover Supervisor">Cover Supervisor</option>
<option value="Education Recruitment Consultant">Education Recruitment Consultant</option>
<option value="Middle School">Middle School</option>
<option value="Nursery Nurse">Nursery Nurse</option>
<option value="Playworker">Playworker</option>
<option value="Primary Head Teacher">Primary Head Teacher</option>
<option value="Primary Teacher">Primary Teacher</option>
<option value="School Support Staff">School Support Staff</option>
<option value="Secondary Head Teacher">Secondary Head Teacher</option>
<option value="Secondary Teacher">Secondary Teacher</option>
<option value="SEN Teacher">SEN Teacher</option>
<option value="Teaching Assistant & HLTA">Teaching Assistant & HLTA</option>
<option value="TESOL/TEFL/EAL">TESOL/TEFL/EAL</option>
</select>
However it will only allow me to place one value in the database (last selected)...
I have tried the following PHP but to no avail...
if (is_array($categories)) {
$categories = implode (", " , $categories);
}
I have also searched these forums as I expected to be a common problem, but found no suitable results.
Can anyone advise or kick me in the right direction.
Many Thanks,
Greens85