>我正在研究代码点火器,我的视图文件是
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100 p-l-55 p-r-55 p-t-65 p-b-50" action="<?php base_url('Login')?>" method="post">
<form class="login100-form validate-form">
<span class="login100-form-title p-b-33"> Account Login </span>
<div class="wrap-input100 validate-input" data-validate = "Valid Username is required">
<input class="input100" type="text" id="username" placeholder="Enter Username" name="username"/>
<span class="text-danger"><?php echo form_error('username') ?></span>
</div>
<div class="wrap-input100 rs1 validate-input" data-validate="Password is required">
<input class="input100" type="password" id="pwd" placeholder="Enter password" name="password"/>
<span class="text-danger"><?php echo form_error('password') ?></span>
</div>
<div class="container-login100-form-btn m-t-20">
<input type="submit" class="btn btn-dark login100-form-btn" name="submit" value="Login"/>
<?php echo $this->session->flashdata('error'); ?>
</div>
<div class="text-center p-t-45 p-b-4">
<span class="txt1"> Forgot </span>
<a href="#" class="txt2 hov1">Username / Password? </a>
</div>
<div class="text-center">
<span class="txt1">Create an account?</span>
<a href="#" class="txt2 hov1"> Sign up</a>
</div>
</form>
</div>
</div>
</div>
我发送了像这个网址这样的帖子请求
http://localhost/openvoips/index.php/Login
但它变成了
http://localhost/openvoips/index.php/Login?username=sanjay&password=12345&submit=Login
如何解决
您没有发送帖子方法。
尝试更新下面的代码库
<div class="wrap-login100 p-l-55 p-r-55 p-t-65 p-b-50" action="<?php base_url('Login')?>" method="post">
<form class="login100-form validate-form">
自
<div class="wrap-login100 p-l-55 p-r-55 p-t-65 p-b-50" >
<form class="login100-form validate-form" action="<?php base_url('Login')?>" method="post">