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" />

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.

Edited by McLaren: version

6 Years
Discussion Span
Last Post by McLaren
<form action = "<?php echo base_url()?>admin_/groups/preview" target = "">

replace with

<form method="post" action = "<?php echo base_url()?>admin_/groups/preview" target = "">

Yeah :) this morning I just found that mistake :) yesterday probably was too tired to notice that. And ususally I use echo form_open() function, so probalby it adds the method attribute itself automatically, but this time I created the form manually and forgot :) thanks for the response.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.