Hyperlink problem |
[eluser]harris_priambudi[/eluser]
Hello Everyone I have some shitty problem right now when I use Code: <a href=""> </a> for example condition my url page is = http://localhost/example/control/user/login on my html I used Code: <a href="<?php echo base_url()?>control/user/register">register</a> when I click the link its direct to "http://localhost/example/control/user/login/control/user/register" and I test change my link to Code: <a href="www.google.com">register</a> "http://localhost/example/control/user/login/www.google.com" what I must supposed to do?? regards
[eluser]siptik[/eluser]
hi! Use the html tag <base href="yor_base_url"/> for example: Code: <!DOCTYPE HTML> your links: Code: <a href="control/user/register"> Code: <a href="<?=base_url();?>control/user/register"> Code: NOTE:
|
Welcome Guest, Not a member yet? Register Sign In |