Welcome Guest, Not a member yet? Register   Sign In
anchor problem
#1

[eluser]Unknown[/eluser]
Hi guy.

I have the problem for get value the anchor.

$attribute = Array ("idproducto" => "$row->idproducto", "producto" => "$row->producto");
echo anchor('Novadistribucion/detalle/'.$row->idproducto,$row->producto,$attribute); ?>

function detalle()
{

$data=$_POST['attribute'];???


}

How I get value of anchor

thanks for you help
#2

[eluser]mi6crazyheart[/eluser]
I think the problem is in u'r 3rd parameter. According to user guide, the third parameter can contain a list of attributes you would like added to the link. The attributes can be a simple string or an associative array.

ex:
Code:
echo anchor('news/local/123', 'My News', array('title' => 'The best news!'));

As u'r 3rd parameter is an array, u need to use it as it has show in above example...

More info: http://ellislab.com/codeigniter/user-gui...elper.html




Theme © iAndrew 2016 - Forum software by © MyBB