[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') != '') {
$this->session->set_userdata('organizer',$this->input->post('txt_organizer'));
}
where 'organizer' is the name of the wedding planner.
view:
Code:
<tr>
<td>Wedding Planner's Name</td>
<td>:</td>
<td colspan=2 ><input type=text name="txt_organizer" id="txt_organizer"
<?php
if(isset($_GET['txt_organizer']) && !$this->session->userdata('organizer')){
echo "value=".$_GET['txt_organizer'];
}
if($this->session->userdata('organizer')){
echo "value=".$this->session->userdata('organizer');
}
?>
></td>
<td></td>
</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.