dongwen9975 2016-06-07 05:16
浏览 128

在提交表单时重定向到http:// [:: 1] / dashboard / [重复]

This question already has an answer here:

Today out of the blue I have started getting redirected to http://[::1]/dashboard/ on my website in localhost when I click to submit a form. I have no idea whats going on. It was working fine just a few hours ago and I have changed nothing in the code.

This is the form's opening and closing tags:

<form action="<?= site_url('Buyer_Controller/view_cart') ?>" method= "post">

<input type="image" src="<?php echo base_url('assets/img/a2c.jpg');?>"  />
</div>
  • 写回答

2条回答 默认 最新

  • douqiao7188 2016-06-07 05:36
    关注

    Have set ur base_url properly?

    For reference, see this post: site_url changes localhost to [::1]

    You can set one global config variable.

    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统