[eluser]murphy2006[/eluser]
Hello!
I recently changed webserver OS from CentOS to Debian.
I am now having problems with parts of my code. The implode function does not work anymore. It worked fine on CentOS and on my local PC (Windows).
I got a webpage that contains alot of checkboxes so that users can make multiple choices and then the form is sent to a controller which implodes all the checkboxes into a comma seperated list of choosen items.
View file
The actual file contains many of the below form items (with different Values).
Code:
<input type="checkbox" class="checkbox" name="profile_marital[]" id="profile_marital[]" value="1" />
Controller file
Code:
implode(',', $this->input->post('profile_marital', TRUE));
I have also tried this but it failed too:
Code:
implode(',', $this->input->post('profile_marital[]', TRUE));
The error
Code:
A PHP Error was encountered
Severity: Warning
Message: implode() [function.implode]: Invalid arguments passed
Filename: models/profiles_model.php
Line Number: 1023
Does anyone know what is wrong? The one thing I can think of is that CentOS used PHP 5.3 but Debian only 5.2.x
Please help!
Kind Regards,
Daniel