1
I have the following CSS class along with foreach():
<section id="cidades">
<div class="listacidade">ESCOLHA UMA OPÇÃO</div>
<ul id="ListandoCidades">
<? foreach($cidades as $valor){ ?>
<a href="<? echo base_url('inicial'); ?>">
<li class="listacidade" id="<? echo $valor->idParametro; ?>">
<img src="<? echo base_url(); ?>site/modules/entrada/images/<?=url_title($valor->parametro);?>.jpg" width="250" height="120" alt=""/>
</li>
</a>
<? } ?>
</ul>
</section>
I’m running the ID through div
. How do I retrieve it on a next page?
Which ID? Which page?
– KaduAmaral
I need to pass this parameter: id="<? echo $value->idParametro; ? >", that the next page that will be /site/index... will receive this id passed.
– Sr. André Baill
The next page is this
href="<? echo base_url('inicial'); ?>
?– KaduAmaral
That’s right Kadu
– Sr. André Baill
Can’t get through there, like
href="<? echo base_url('inicial').'?idParam='.$valor->idParametro; ?>
?– KaduAmaral
It would not be my intention... It would hide the ID
– Sr. André Baill
click on the link, create a cookie, redirect, and on the other page read the cookie
– Jefferson Silva