Looking at the link you provided you seem to have a form within a form remove the outer one and it should work fine.
CodeIgniter form action not happening
-
28-09-2022 - |
Question
This is my code, once it's submitted it should in theory go to localhost/site/main/login_validation
.
<?php
echo form_open('main/login_validation');
$emailData = array(
'id' => 'inputEmail3',
'class' => 'form-control',
'placeholder' => 'Email',
'value' => 'email'
);
echo form_input($emailData);
$passwordData = array(
'id' => 'inputPassword3',
'class' => 'form-control',
'placeholder' => 'Password',
'value' => 'password'
);
echo form_password($passwordData);
$buttonData = array("type" => "submit", "class" => "btn btn-success btn-sm", "value" => "Login", 'name' => 'login_submit');
echo form_submit($buttonData, 'Login');
echo form_close();
?>
It sends me to http://joeobrien.kd.io/ci_site/?email=Email%40domain.com&password=password123&login_submit=Login
, I assume I’ve made some simple mistake. This link might show you the webpage if it's still online.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow