Welcome Guest, Not a member yet? Register   Sign In
How to retieve an ID from anchor

[eluser]new developer[/eluser]
I have an anchor like the following. When i want to update, i need an id. Is there anyway i can retrieve id from this anchor. Will the id be posted? When i check $_POST array in update function $_POST array is empty. So how can i achieve the functionality i needed.Any help is appreciated.

echo anchor('user/users/update/'.$list['id'], 'Edit');

I think if you looked at the URI Class in the users guide you might be able to find something that would help you achieve what you want to do.

$idField = $this->uri->segment(x);
where x is the number of the segment. It looks like it should be 4 in your case, but it mights be 3 if you are doing some fancy routing.

Theme © iAndrew 2016 - Forum software by © MyBB