This is my base URL:
$config['base_url'] = '//'. $_SERVER['HTTP_HOST'].
str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
This my view:
<form action="<?php echo $this->config->base_url().'index.php/certification/add/'; ?>"
method="post" accept-charset="utf-8" onsubmit ='return false;'>
This is the result:
<form action="//localhost/php/index.php/localhost/php/index.php/certification/add/"
method="post" accept-charset="utf-8" onsubmit="return false;">
Why does this happen? (Read this if you don't know what protocol-relative URLs are.