[eluser]PhilTem[/eluser]
If you don't know how many you have, but want to know, you can use
Code:
$count_fields = count($this->input->post())/3;
assuming you only have fields submitted that are input_name<n>, input_lastname<n>, input_email<n>. and nothing else, i.e. every count of $_POST is a multiple of 3.
On the other hand: Why don't you just use textareas for your purpose? This way you can get how many items you have by
Code:
$count_fields = count(explode("\n", $this->input->post('textarea_names')));
assuming you count every line separately (could also be items separated by comma or any other delimiter)
PS: Don't make your code and coding life more difficult than it has to be