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

[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');
#2

[eluser]zimco[/eluser]
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.
#3

[eluser]lmv4321[/eluser]
Code:
$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