Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The problem is with the action attribute of the form tag</p> <p>Change </p> <pre><code>&lt;form class="form-1" action="login/check" method="post"&gt; </code></pre> <p>To</p> <pre><code>&lt;form class="form-1" action="/login/check" method="post"&gt; </code></pre> <p>Or better (if you are using the url helper)</p> <pre><code>&lt;form class="form-1" action="&lt;?php echo base_url() ?&gt;login/check" method="post"&gt; </code></pre> <p><strong>Why is it happening?</strong></p> <p>You are using a value that is relative to the <code>path</code> of the current url.</p> <p><a href="http://www.w3schools.com/tags/att_form_action.asp" rel="nofollow">HTML form action Attribute</a></p> <p><strong>Example 1</strong></p> <ul> <li>Page <ul> <li><code><a href="http://www.example.com/" rel="nofollow">http://www.example.com/</a></code></li> </ul></li> <li>Form <ul> <li><code>&lt;form class="form-1" action="login/check" method="post"&gt;</code></li> </ul></li> <li>Will post to <ul> <li><code><a href="http://www.example.com/login/check" rel="nofollow">http://www.example.com/login/check</a></code></li> </ul></li> </ul> <p><strong>Example 2</strong></p> <ul> <li>Page <ul> <li><code><a href="http://www.example.com/login/" rel="nofollow">http://www.example.com/login/</a></code></li> </ul></li> <li>Form <ul> <li><code>&lt;form class="form-1" action="login/check" method="post"&gt;</code></li> </ul></li> <li>Will post to <ul> <li><code><a href="http://www.example.com/login/login/check" rel="nofollow">http://www.example.com/login/login/check</a></code></li> </ul></li> </ul> <p><strong>Example 3</strong></p> <ul> <li>Page <ul> <li><code><a href="http://www.example.com/login" rel="nofollow">http://www.example.com/login</a></code></li> </ul></li> <li>Form <ul> <li><code>&lt;form class="form-1" action="/" method="post"&gt;</code></li> </ul></li> <li>Will post to <ul> <li><code><a href="http://www.example.com/" rel="nofollow">http://www.example.com/</a></code></li> </ul></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload