[eluser]SPeed_FANat1c[/eluser]
Don't undestand, such simple thing but does not work.
Code:
<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 button withd class = "preview", it calls the right funciton, which is in action attribute, but there is no data in post array.
This does not echo anything. Can you help me?
Code:
function preview()
{
echo $this->input->post('title');
//echo stripslashes($_POST['text']);
}