CodeIgniter Forums
anchor for # - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: anchor for # (/thread-53429.html)



anchor for # - El Forum - 07-23-2012

[eluser]anyamanggar[/eluser]
how to set <a href="#">Klik</a> the # sign in anchor, thank you


anchor for # - El Forum - 07-23-2012

[eluser]PravinS[/eluser]
can u plz explain it in details...


anchor for # - El Forum - 07-23-2012

[eluser]InsiteFX[/eluser]
Code:
<a href="#">here</>



anchor for # - El Forum - 07-24-2012

[eluser]anyamanggar[/eluser]
Code:
<ul class="dropdown">
  &lt;?php foreach ($multilevel as $data): ?&gt;
<li>&lt;?php echo anchor('halaman/' . $data['url'], $data['nama']); ?&gt;
<ul class="sub_menu">
&lt;?php echo print_recursive_list($data['child']);  ?&gt;
  </ul>
        &lt;?php endforeach ?&gt;
        </ul>

thats my view, if i insert data in my database, and for my input url ($data['url']) like #, so the view must be like this huh? &lt;?php echo anchor('halaman/#' . $data['url'], $data['nama']); ?&gt; ?? so when i klik its link ??