Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 链接在Mozilla Firefox中工作,但在Internet Explorer中不工作_Html_Codeigniter_Internet Explorer - Fatal编程技术网

Html 链接在Mozilla Firefox中工作,但在Internet Explorer中不工作

Html 链接在Mozilla Firefox中工作,但在Internet Explorer中不工作,html,codeigniter,internet-explorer,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);?>" > 看起来你不是有意在你的url中加入index.php——我怀疑你能否在index.php之后进入/person/crea

我的链接似乎有问题,它们在Internet Explorer中没有任何功能

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

看起来你不是有意在你的url中加入
index.php
——我怀疑你能否在
index.php
之后进入
/person/create/2
。尝试删除它?

尝试以下操作:

<?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/添加到url中


希望有帮助。

这是很基本的东西。我严重怀疑IE不能处理一个简单的
标记。这就是说,您还没有向我们展示其余的代码:即用户实际点击的位;那里也可能有错误。您是否已通过W3C验证器运行HTML代码,以查看是否存在任何可能破坏内容的验证错误?另外,你有没有试过把URL直接放进IE的地址栏?这样行吗?这可能是URL的问题,而不是link.index.php/person/create/2的问题?这是正确的链接吗?首先想到的是,您有index.php,然后在它后面加上斜杠。如果要将参数传递到索引页,应使用GET Header或sessions。顺便说一句,在询问IE问题时,请始终指定要测试的IE版本。在这种情况下,我可能不会有什么不同,但它经常会有不同,因此包含它是很重要的。@Jason它属于CI framework。是的,如果我直接在地址栏上键入地址,这是正确的链接,而在mozilla firefox中,它的工作没有任何意义。区别是什么?是否指定了索引页?如果是这样,请从url中删除index.php。无论是否使用
/index.php/
,它都应该在这两种情况下工作。但是如果单击链接,它会重定向吗?或者它什么都不做?它不重定向。它之所以有效,是因为这是本机PHP路由方式。但是我不是OP。希望他/她能理解。index.php必须在那里,因为我使用的是codeigniter框架,我没有选择htaccess选项