在Mozilla Firefox中工作的链接,但在Internet Explorer中没有

时间:2013-08-07 07:53:09

标签: html codeigniter internet-explorer

我的链接似乎有问题,他们在Internet Explorer中没有做任何事情

<a style="text-decoration:none;" href="<?php echo base_url();?>index.php/person/create/<?php echo $this->uri->segment(4);?>" >

如果我查看来源,我的链接是href="http://localhost/index.php/person/create/2"。 这在Mozilla中有效,但在IE中链接无处可去。

2 个答案:

答案 0 :(得分:0)

看起来你并不想把index.php放在你的网址中 - 我怀疑你可以在/person/create/2之后进入index.php。尝试删除它?

答案 1 :(得分:0)

试试这个:

<?php $url = $this->uri->segment(4); ?>
<a style="text-decoration:none;" href="<?php echo base_url("index.php/person/create/$url");?>">click</a>

如果您在'config.php'中指定了索引页,则无需将/index.php/添加到您的网址。

希望它有所帮助。