codeigniter-3 - 如何在代码点火器中解决这个表单动作问题?
问题描述
CodeIgniter 表单操作会导致问题。
当我在没有 index.php 的情况下写下面的操作 URL 时,它在 Chrome 上运行良好,而不是在 firefox 上
<form method="POST" action="Login/Loginme">
但是当我在下面用 index.php 编写操作 URL 时,它不会在 chrome 上运行并在 firefox 上运行。
<form method="POST" action="index.php/Login/Loginme">
解决方案
利用site_url();
<form method="POST" action="<?php echo site_url('Login/Loginme'); ?>">
推荐阅读
- laravel - 如何删除ckeditor包(错误:找不到类'Ckeditor\CkeditorServiceProvider')?
- redis - kong api网关如何使用redis
- dependencies - ClassNotFoundException : org.apache.http.util.Args - 如何使用 MultipartEntityBuilder 上传文件?
- javascript - 获取数据之前的 Vue 渲染组件
- javascript - "Uncaught SyntaxError: Unexpected token <" when trying to use content of Rails array in Javascript
- eclipse - 隐藏/删除另一个插件提供的透视图 - eclipse
- python - Jupyter Lab/Notebook magic command %load with platform independent path
- c# - 数据注释只允许整数用于长数据类型属性
- android - 如何在 RealmObject 中查询 RealmList(在 Android 中)
- parsing - 使用 PDFBox 的 .NET 版本从 PDF 解析注释/注释:PDFBox.NET-1.8.9