 <p>This question has been answered already, but I want to point out that form_open() <strong>without</strong> any arguments would do exactly what you want (creating an action=""). </p> <p>So you can simply use the snippet below:</p> <pre class="lang-php prettyprint-override"><code>&lt;?php echo form_open(); ?&gt; </code></pre> <p>Here is a reference from the CodeIgniter's Source:</p> <pre class="lang-php prettyprint-override"><code>function form_open($action = '', $attributes = '', $hidden = array()) </code></pre>