I have this controllers/insert.php as my controller and this is the localhost url
http://localhost/codeigniter/index.php/insert/data_submit/
but when I click on submit button it redirects to this link
http://localhost/codeigniter/index.html/insert/data_submit/
I'm quite new to Codeigniter and I'm trying out how to insert data into database, but routing is yet complicated to me, can someone explain why this problem shows in my code? ::thanks in advance::
codes in View/insert.php
<?php echo form_open('insert/data_submit/'); ?>
<table width="500" cellpadding="5" cellspacing="5">
<tr>
<td width="85"></td>
<td width="200" colspan="2">
<?php
if (isset($ins_msg))
{
echo $ins_msg;
} ?></td>
</tr>
<tr>
<td> Fullname: </td>
<td> <input type="text" name="full_name" value="<?= set_value('full_name'); ?>"> </td>
<td> <?= form_error('full_name'); ?> </td>
</tr>
<tr>
<td> Email: </td>
<td> <input type="text" name="email" value="<?= set_value('email'); ?>"> </td>
<td> <?= form_error('email'); ?> </td>
</tr>
<tr>
<td width="223"> </td>
<td> <input type="submit" name="submit" value="Login" alt="Login"> </td>
</tr>
</table>
</form>