![]() |
[Solved] CI Sessions does not accept space - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [Solved] CI Sessions does not accept space (/showthread.php?tid=49335) |
[Solved] CI Sessions does not accept space - El Forum - 02-15-2012 [eluser]Nine[/eluser] I am currently coding for my thesis and I am new to the CI Framework. This is my second project with CI. Our thesis is about online booking for a photography service. I usually find my answers to google, but this issue bugs me. I am wondering why CI Sessions can only store one word. E.g. when saving a full name, it can only store the first name thus not including the middle name and surname. model: Code: if($this->input->post('txt_organizer') != '') { view: Code: <tr> Is it really a CI rule to store only one word(without spaces)? Or did I do something with Session settings or just did not implement this well? Regular Php sessions can store spaces. [Solved] CI Sessions does not accept space - El Forum - 02-15-2012 [eluser]Nine[/eluser] If CI Sessions can't store spaces, I will opt to use SQL codes, and skip Sessions. . [Solved] CI Sessions does not accept space - El Forum - 02-15-2012 [eluser]Nine[/eluser] Got it now. It has nothing to do with sessions. When I was displaying the value in the textbox the first word was the only string displayed because the whole phrase was not in a quotes. Solved it this way: Code: echo "value='".$this->session->userdata('organizer')."'"; *inner quotes within the echo quotes . . Whew. . Things solved on my own makes me feel better. |