Have no idea how such simple thing can not work :(
<form action = "<?php echo base_url()?>admin_/groups/preview" target = "">
<strong>Pavadinimas: </strong><br>
<input type="text" name="title" /><br><br>
<strong>Tekstas: </strong><br>
<textarea name = "text" cols = "90" rows = "90"></textarea><br>
<input class = "save" type="button" name="submit" value = "Išsaugoti"/>
<input class = "preview" type="submit" name="preview" value = "Peržiūrėti" />
</form>
I press the button which class is preview, it calls the right function.
function preview()
{
echo $this->input->post('title');
//echo stripslashes($_POST['text']);
}
But this function does not echo anything. Can you help me?
Edit: I forget that my codeignitet is actually 1.7.3 but I gueess this does not matter.